/* Smartphone Mockup Styles */
.smartphone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 20px auto;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 
        0 0 0 2px #333,
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.smartphone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Smartphone Frame Elements */
.smartphone-mockup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #666;
    border-radius: 2px;
}

.smartphone-mockup::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #444;
    border-radius: 50%;
}

/* Home Indicator */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #666;
    border-radius: 2px;
}

/* Screen Container */
.smartphone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}

/* Status Bar */
.mobile-status-bar {
    height: 44px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    border-bottom: 1px solid #e8eaed;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.signal-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
}

.signal-bar {
    width: 3px;
    background: #000;
    border-radius: 1px;
}

.signal-bar:nth-child(1) { height: 4px; }
.signal-bar:nth-child(2) { height: 6px; }
.signal-bar:nth-child(3) { height: 8px; }
.signal-bar:nth-child(4) { height: 10px; }

.wifi-icon {
    width: 15px;
    height: 11px;
    position: relative;
}

.wifi-icon::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 11px;
    background: radial-gradient(circle at bottom, transparent 40%, #000 41%, #000 50%, transparent 51%);
    border-radius: 15px 15px 0 0;
}

.battery-icon {
    width: 24px;
    height: 12px;
    border: 1px solid #000;
    border-radius: 2px;
    position: relative;
}

.battery-icon::before {
    content: '';
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 6px;
    background: #000;
    border-radius: 0 1px 1px 0;
}

.battery-icon::after {
    content: '';
    position: absolute;
    left: 1px;
    top: 1px;
    width: 70%;
    height: 8px;
    background: #000;
    border-radius: 1px;
}

/* Google Search Header */
.google-search-header {
    background: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid #e8eaed;
}

.google-search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 24px;
    padding: 8px 16px;
    gap: 12px;
}

.google-logo {
    font-size: 16px;
    font-weight: bold;
    color: #4285f4;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
    outline: none;
}

.search-icon {
    width: 16px;
    height: 16px;
    background: #9aa0a6;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: '';
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 6px;
    height: 2px;
    background: #9aa0a6;
    transform: rotate(45deg);
}

/* Mobile Ad Content */
.mobile-ad-content {
    padding: 16px;
    background: #fff;
    flex: 1;
    overflow-y: auto;
}

.mobile-ad-preview-enhanced {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-family: arial, sans-serif;
}

.mobile-ad-preview-enhanced .ad-label {
    display: inline-block;
    font-size: 10px;
    color: #70757a;
    border: 1px solid #dadce0;
    border-radius: 2px;
    padding: 1px 4px;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
}

.mobile-ad-preview-enhanced .ad-url {
    font-size: 12px;
    color: #006621;
    margin-bottom: 2px;
    line-height: 1.3;
}

.mobile-ad-preview-enhanced .ad-title {
    font-size: 16px;
    color: #1a0dab;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 4px;
    display: block;
    font-weight: normal;
}

.mobile-ad-preview-enhanced .ad-title:hover {
    text-decoration: underline;
}

.mobile-ad-preview-enhanced .ad-description {
    font-size: 13px;
    color: #4d5156;
    line-height: 1.4;
    margin-bottom: 8px;
}

.mobile-ad-preview-enhanced .ad-sitelinks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-ad-preview-enhanced .ad-sitelink {
    font-size: 12px;
    color: #1a0dab;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #dadce0;
    border-radius: 12px;
    background: #f8f9fa;
}

.mobile-ad-preview-enhanced .ad-sitelink:hover {
    text-decoration: underline;
}

/* Navigation Bar */
.mobile-nav-bar {
    height: 50px;
    background: #fff;
    border-top: 1px solid #e8eaed;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #5f6368;
    font-size: 10px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    background: #5f6368;
    border-radius: 2px;
    position: relative;
}

.nav-icon.search::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
}

.nav-icon.search::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 4px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .smartphone-mockup {
        width: 280px;
        height: 560px;
        transform: none;
    }
    
    .smartphone-mockup:hover {
        transform: none;
    }
}

/* Animation for the mockup */
@keyframes phoneGlow {
    0%, 100% {
        box-shadow: 
            0 0 0 2px #333,
            0 10px 30px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        box-shadow: 
            0 0 0 2px #4285f4,
            0 10px 30px rgba(66, 133, 244, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
}

.smartphone-mockup.active {
    animation: phoneGlow 2s ease-in-out infinite;
}

/* Loading state for the mockup */
.smartphone-mockup.loading .mobile-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.smartphone-mockup.loading .mobile-ad-content::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

