/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #d30383;
    border-radius: 50%;
    animation: twinkle 4s infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #d30383, #d30383);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
}

/* Navigation Styles */
nav {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
}

.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: linear-gradient(45deg, #d30383, #d30383);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(54, 62, 71, 0.363);
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-menu li a:hover::before {
    left: 100%;
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Home Section Styles */
.home-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh;
    justify-content: center;
}

.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ffffff, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 4, 121, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(33, 150, 243, 0.8);
    }
}

.main-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* GNEWS Section Styles */
.gnews-section {
    display: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Search Container - Original Style */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 1rem auto;
}

.search-container input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    border-color: rgb(212, 1, 82);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Filter Container - EXAKT GLEICH WIE SEARCH */
.filter-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

.filter-container select {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.filter-container select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    border-color: #f7005f;
}

.filter-container select option {
    background: #1a1a2e;
    color: white;
    padding: 0.8rem;
}

.filter-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Refresh Button */
.refresh-news-btn {
    display: block;
    margin: 0 auto 2rem auto;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #333333a6, #333333a6);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 199, 200, 0.432);
}

.refresh-news-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 1, 133, 0.541);
    background: linear-gradient(45deg, rgb(209, 8, 92), rgb(209, 8, 92));
}

.refresh-news-btn:active {
    transform: translateY(0);
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid #d30383;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.news-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: #c5014c;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.news-card:hover::before {
    left: 100%;
}

.copy-indicator {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(241, 3, 150, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.news-card:hover .copy-indicator {
    opacity: 1;
}

.news-category {
    display: inline-block;
    background: linear-gradient(45deg, #d30383, #d30383);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ec0b87;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.news-source {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    margin-top: 0.8rem;
}

/* No Results and Error Messages */
.no-results,
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.no-results p,
.error-message p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.error-message {
    border-color: rgba(255, 107, 107, 0.3);
}

.error-message p {
    color: #FF6B6B;
}

/* Footer Styles */
footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    font-weight: bold;
    color: #858eac;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.footer-logo-link:hover {
    transform: scale(1.1);
}

.footer-logo {
    width: auto;
    height: 25px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #a855f7;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #d30383, #d30383);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    z-index: 1000;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
    font-weight: bold;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .logo-text .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .nav-menu li a {
        text-align: center;
        padding: 0.6rem 1rem;
    }
    
    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .home-section {
        padding: 2rem 1rem;
    }
    
    .description {
        padding: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-card {
        padding: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo {
        height: 20px;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .toast {
        right: 15px;
        bottom: 15px;
        left: 15px;
        right: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .search-container input {
        padding: 0.8rem 2.5rem 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter-container select {
        padding: 0.8rem 2.5rem 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .news-card {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-content {
        font-size: 0.9rem;
    }
}