* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mosque-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin: 0;
    line-height: 1;
}

.center-name {
    font-size: 0.85rem;
    color: #ffd700;
    font-weight: 500;
    line-height: 1;
}

.logo-img {
    height: 25px;
    width: 25px;
    object-fit: contain;
}

.logo i {
    font-size: 2rem;
    color: #ffd700;
}

/* DateTime Widget */
.datetime-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.current-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffd700;
}

.current-time i {
    font-size: 1rem;
}

.hijri-date, .gregorian-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.hijri-date i, .gregorian-date i {
    font-size: 0.8rem;
    opacity: 0.8;
}

#time-display {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ffd700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 85, 48, 0.8), rgba(74, 124, 89, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234a7c59" width="1200" height="600"/><circle fill="%23ffffff" cx="600" cy="300" r="50" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 2rem;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background: #ffd700;
    color: #2c5530;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Dini Bilgiler Section */
.dini-bilgiler {
    padding: 80px 0;
    background: white;
}

.dini-bilgiler h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.bilgi-kategorileri {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.kategori-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.kategori-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #4a7c59;
}

.kategori-card i {
    font-size: 3rem;
    color: #4a7c59;
    margin-bottom: 1rem;
}

.kategori-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.kategori-card p {
    color: #666;
    line-height: 1.6;
}

/* Namaz Vakitleri */
.namaz-vakitleri {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.namaz-vakitleri h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.vakit-tablosu {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.vakit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.vakit-item:last-child {
    border-bottom: none;
}

.vakit-adi {
    font-weight: bold;
    color: #2c5530;
    font-size: 1.1rem;
}

.vakit-saati {
    font-size: 1.2rem;
    color: #4a7c59;
    font-weight: bold;
}

.last-update {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.last-update small {
    font-size: 0.9rem;
}

.refresh-btn {
    background: #4a7c59;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: #2c5530;
    transform: rotate(180deg);
}

.refresh-btn.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hakkımızda */
.hakkimizda {
    padding: 80px 0;
    background: white;
}

.hakkimizda h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.hakkimizda-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    text-align: center;
}

.ozellikler {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ozellik {
    text-align: center;
    padding: 1.5rem;
}

.ozellik i {
    font-size: 2.5rem;
    color: #4a7c59;
    margin-bottom: 1rem;
}

.ozellik h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c5530;
}

.ozellik p {
    color: #666;
}

/* İletişim */
.iletisim {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.iletisim h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.iletisim-content {
    max-width: 600px;
    margin: 0 auto;
}

.iletisim-bilgileri {
    display: grid;
    gap: 2rem;
}

.iletisim-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.iletisim-item i {
    font-size: 1.5rem;
    color: #4a7c59;
    min-width: 30px;
}

.iletisim-item h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.iletisim-item p {
    color: #666;
}

/* Footer */
footer {
    background: #2c5530;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #2c5530;
}

#modal-body {
    margin-top: 30px;
}

#modal-body h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

#modal-body h4 {
    color: #4a7c59;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.3rem;
}

#modal-body p, #modal-body li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #555;
}

#modal-body ul {
    margin-left: 1.5rem;
}

/* Hoş Geldin Modal */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.95), rgba(74, 124, 89, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.welcome-content {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: welcomeSlideIn 0.8s ease-out;
}

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-header {
    margin-bottom: 2rem;
}

.welcome-icon {
    font-size: 3rem;
    color: #4a7c59;
    margin-bottom: 1rem;
}

.welcome-header h2 {
    color: #2c5530;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.welcome-header p {
    color: #4a7c59;
    font-size: 1rem;
    margin: 0;
}

.welcome-form {
    margin-bottom: 1.5rem;
}

.welcome-form label {
    display: block;
    color: #2c5530;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.welcome-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.welcome-form input:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.welcome-buttons {
    display: flex;
    justify-content: center;
}

.welcome-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.welcome-btn.primary {
    background: #4a7c59;
    color: white;
}

.welcome-btn.primary:hover {
    background: #2c5530;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 124, 89, 0.3);
}

.welcome-btn.secondary {
    background: #f5f5f5;
    color: #666;
}

.welcome-btn.secondary:hover {
    background: #e0e0e0;
    color: #333;
}

.welcome-footer {
    margin-top: 1rem;
}

.welcome-footer small {
    color: #888;
    font-size: 0.85rem;
}

/* Kullanıcı karşılama mesajı */
.user-greeting {
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.2);
}

.user-greeting i {
    margin-right: 0.5rem;
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    header .container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .user-greeting {
        order: -2;
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .datetime-widget {
        order: -1;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .current-time {
        font-size: 1rem;
    }
    
    .hijri-date, .gregorian-date {
        font-size: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.2rem;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
        margin-bottom: 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #2c5530;
        transition: left 0.3s;
        padding: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .bilgi-kategorileri {
        grid-template-columns: 1fr;
    }

    .ozellikler {
        grid-template-columns: 1fr;
    }

    .vakit-tablosu {
        margin: 0 1rem;
    }

    .dini-bilgiler h2,
    .namaz-vakitleri h2,
    .hakkimizda h2,
    .iletisim h2 {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .welcome-content {
        padding: 2rem 1.5rem;
        max-width: 350px;
    }
    
    .welcome-header h2 {
        font-size: 1.5rem;
    }
    
    .welcome-icon {
        font-size: 2.5rem;
    }
    
    .welcome-buttons {
        justify-content: center;
    }
    
    .welcome-btn {
        width: auto;
        min-width: 160px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mosque-name {
        font-size: 1.3rem;
    }
    
    .center-name {
        font-size: 0.75rem;
    }

    .logo-img {
        height: 20px;
        width: 20px;
    }
    
    .datetime-widget {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .current-time {
        font-size: 0.9rem;
    }
    
    .hijri-date, .gregorian-date {
        font-size: 0.7rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .kategori-card {
        padding: 1.5rem;
    }

    .kategori-card i {
        font-size: 2.5rem;
    }

    .vakit-tablosu {
        padding: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kategori-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Dark mode support */
/* Sosyal İçerikler */
.sosyal-icerikler {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.sosyal-icerikler h2 {
    text-align: center;
    color: #2c5530;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.content-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #4a7c59;
    transition: all 0.3s ease;
    position: relative;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.content-type-badge {
    background: #4a7c59;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.content-type-badge.duyuru {
    background: #dc3545;
}

.content-type-badge.etkinlik {
    background: #28a745;
}

.content-type-badge.haber {
    background: #007bff;
}

.content-type-badge.vaaz {
    background: #6f42c1;
}

.content-type-badge.bilgilendirme {
    background: #fd7e14;
}

.content-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.content-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.content-text {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.content-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.content-author {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-content {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-content i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-content p {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .content-feed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .sosyal-icerikler h2 {
        font-size: 2rem;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .kategori-card,
    .vakit-tablosu,
    .iletisim-item,
    .modal-content,
    .content-card {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .sosyal-icerikler {
        background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    }
}
