/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --accent-color: #667eea;
    --accent-secondary: #764ba2;
    --hover-bg: rgba(255, 255, 255, 0.25);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Shapes */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100vh;
}

/* Glass Card Base */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Header Card */
.header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content {
    width: 100%;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.header-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.time-weather {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: space-between;
}

.time-section h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.time-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.weather-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon {
    font-size: 2rem;
    color: #fbbf24;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.3));
}

.weather-info {
    display: flex;
    flex-direction: column;
}

.temp {
    font-size: 1.5rem;
    font-weight: 600;
}

.condition {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.greeting h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.greeting p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Navigation Menu */
.main-nav {
    margin-top: 1rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Policy Content Styles */
.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.policy-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-primary);
}

.policy-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.policy-content ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.policy-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Search Card */
.search-card {
    text-align: center;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-engine-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.engine-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.engine-btn.active {
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(15px);
    transition: var(--transition);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

#search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: inherit;
}

#search-input::placeholder {
    color: var(--text-secondary);
}

#search-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

#search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Links Card */
.links-card h3,
.news-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.quick-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.quick-link span {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* News Card */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item:hover {
    background: var(--hover-bg);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.news-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.loading-spinner i {
    font-size: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .header-card {
        flex-direction: column;
        text-align: center;
    }
    
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .time-weather {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .time-section h1 {
        font-size: 2rem;
    }
    
    .search-engine-selector {
        flex-wrap: wrap;
    }
    
    .quick-links {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .quick-link {
        padding: 1rem 0.5rem;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .policy-content h2 {
        font-size: 1.3rem;
    }
    
    .policy-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .time-section h1 {
        font-size: 1.75rem;
    }
    
    .greeting h2 {
        font-size: 1.25rem;
    }
    
    .search-box {
        padding: 0.5rem 1rem;
    }
    
    #search-input {
        font-size: 1rem;
    }
    
    .quick-links {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .quick-link span {
        font-size: 0.75rem;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
}