/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 2rem 0 1rem;
    text-align: center;
}

.time-weather {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.time {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    letter-spacing: -0.02em;
}

.date {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.weather {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

.weather i {
    color: #ffa500;
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    width: 100%;
}

.search-box {
    position: relative;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

#search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    padding-left: 2.5rem;
    outline: none;
    color: #333;
}

#search-input::placeholder {
    color: #adb5bd;
}

.search-engines {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.engine-btn {
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #6c757d;
}

.engine-btn:hover,
.engine-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Links Section */
.links-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.link-item {
    transition: transform 0.2s ease;
}

.link-item:hover {
    transform: translateY(-2px);
}

.link-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #333;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.link-item a:hover {
    background: white;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.link-item i {
    font-size: 1.5rem;
    color: #007bff;
}

.link-item span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* News Section */
.news-section {
    margin-bottom: 2rem;
}

.news-container {
    max-width: 600px;
    margin: 0 auto;
}

.news-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: white;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.news-source {
    font-size: 0.8rem;
    color: #007bff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-time {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.footer-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .time {
        font-size: 2rem;
    }
    
    .date {
        font-size: 0.9rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .link-item a {
        padding: 1rem 0.5rem;
    }
    
    .link-item i {
        font-size: 1.3rem;
    }
    
    .link-item span {
        font-size: 0.8rem;
    }
    
    .search-box {
        padding: 0.8rem 1.2rem;
    }
    
    #search-input {
        font-size: 1rem;
    }
    
    .engine-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .time {
        font-size: 1.8rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .search-engines {
        flex-wrap: wrap;
    }
    
    .news-item {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}