:root {
    --bg-color: #ffffff;
    --footer-bg: #1a1a1a;
    --text-main: #202124;
    --gray-text: #5f6368;
    --border-color: #dadce0;
    --primary-color: #1a73e8;
    --hover-color: #f1f3f4;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --news-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    min-height: calc(100vh - 300px);
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

.main-logo {
    height: 80px;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.special-event {
    color: #f2a60c;
    font-size: 16px;
    font-weight: 600;
    margin-top: 5px;
    background: linear-gradient(45deg, #f2a60c, #f5b342);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

/* Search Bar */
.search-wrapper {
    width: 90%;
    max-width: 650px;
    position: relative;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 25px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
    background: white;
}

.search-bar:hover,
.search-bar:focus-within {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: transparent;
    transform: translateY(-2px);
}

.search-icon,
.clear-icon {
    color: var(--gray-text);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-icon:hover,
.clear-icon:hover {
    color: var(--primary-color);
}

input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0 15px;
    background: transparent;
}

input::placeholder {
    color: #9aa0a6;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 12px var(--shadow-color);
    margin-top: 8px;
    display: none;
    z-index: 1000;
}

.search-suggestions.active {
    display: block;
}

/* Buttons */
.button-group {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.primary-btn:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.secondary-btn {
    background: var(--hover-color);
    color: var(--text-main);
}

.secondary-btn:hover {
    background: #e8eaed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Recent Searches */
.recent-searches {
    margin-top: 50px;
    width: 100%;
    max-width: 800px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--gray-text);
}

.section-header .material-icons {
    font-size: 20px;
}

.clear-history {
    margin-left: auto;
    font-size: 13px;
    color: var(--primary-color);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recent-searches:hover .clear-history {
    opacity: 1;
}

.tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: var(--hover-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid transparent;
}

.tag:hover {
    background: #e8eaed;
    transform: translateY(-2px);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.tag::before {
    content: "history";
    font-family: 'Material Icons';
    font-size: 16px;
    color: var(--gray-text);
}

/* News Section */
.news-section {
    width: 100%;
    max-width: 900px;
    margin-top: 60px;
}

.divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.news-card {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    background: var(--news-bg);
    padding: 15px;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color);
    box-shadow: 0 8px 20px var(--shadow-color);
    background: white;
}

.news-card img {
    width: 120px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.news-source {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray-text);
}

.update-time {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray-color);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
}

.brand p {
    font-size: 14px;
    color: #bdc1c6;
    margin-top: 15px;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
}

.country-select {
    background: transparent;
    color: white;
    border: none;
    outline: none;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
}

.country-select option {
    background: var(--footer-bg);
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h4 {
    font-size: 14px;
    color: #9aa0a6;
    margin-bottom: 10px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc1c6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9aa0a6;
    font-size: 13px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .main-logo {
        height: 60px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    button {
        width: 100%;
        justify-content: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-location {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .search-bar {
        padding: 10px 15px;
    }

    .tag {
        padding: 8px 15px;
        font-size: 12px;
    }

    .news-card {
        flex-direction: column;
    }

    .news-card img {
        width: 100%;
        height: 150px;
    }
}
