/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: "📰";
    font-size: 28px;
}

/* Navigation Styles */
.nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link.has-dropdown::after {
    content: "▼";
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link.has-dropdown::after {
    transform: rotate(180deg);
}

/* Dropdown Styles */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #667eea;
    padding-left: 25px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-top: 10px;
    }

    .dropdown-item {
        color: white;
        border-color: rgba(255,255,255,0.1);
    }

    .dropdown-item:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.welcome-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.welcome-section h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.welcome-section p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

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

.footer-section h3 {
    color: #ecf0f1;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: #bdc3c7;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #95a5a6;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #95a5a6;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #34495e;
}

.social-link:hover {
    color: white;
    background-color: #667eea;
    border-color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    padding: 20px;
    color: #667eea;
    font-style: italic;
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* Responsive Utilities */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
}
/* Kullanıcı Menüsü Stilleri */
.user-menu .dropdown {
    min-width: 180px;
}

.user-info {
    padding: 15px 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #f8f9fa !important;
}

.user-info:hover {
    background: #f8f9fa !important;
    padding-left: 20px !important;
}

.user-info strong {
    color: #333;
    font-size: 0.95rem;
}

.user-info small {
    color: #666;
    text-transform: capitalize;
}

/* Dropdown hover efektlerini kullanıcı bilgisi için devre dışı bırak */
.dropdown-item.user-info:hover {
    color: inherit;
    transform: none;
}
/* Haber içeriği görüntüleme için satır aralığı */
.news-content {
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 12px;
}

.news-content h1, .news-content h2, .news-content h3 {
    margin-top: 16px;
    margin-bottom: 12px;
}

.news-content ul, .news-content ol {
    margin-bottom: 12px;
}

.news-content li {
    margin-bottom: 4px;
}

.news-content blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 4px solid #ddd;
    background: #f9f9f9;
}

/* Modal içindeki haber içeriği için de aynı stil */
.modal-content .news-content {
    line-height: 1.8;
}