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

/* Color Palette - FinanceAppV1 (Sadece Dark Mode) */
:root {
    /* Dark Mode Renkleri */
    --bg-primary: #121826;
    --bg-secondary: #1A2233;
    --text-primary: #E2E8F0;
    --text-secondary: #A0AEC0;
    --accent: #4A90E2;
    --success: #48BB78;
    --danger: #F56565;
    --surface: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding-top: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

/* Header Görsel Bölümü */
.header-image {
    position: relative;
    /* Oransal yükseklik: viewport genişliğine göre, min-max arasında */
    height: clamp(150px, 20vw, 250px);
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-clip: padding-box;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: background 0.3s ease, height 0.3s ease;
    overflow: hidden; /* İçeriği kırp */
}

.header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    opacity: 0.85;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.header-clock {
    position: absolute;
    /* Oransal pozisyon */
    top: clamp(8px, 1.5vw, 15px);
    left: clamp(10px, 2vw, 20px);
    z-index: 30;
}

.header-clock #current-datetime {
    color: var(--surface);
    /* Oransal font boyutu */
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    transition: color 0.3s ease, font-size 0.3s ease;
}


.header-music {
    position: absolute;
    /* Oransal pozisyon */
    top: clamp(8px, 1.5vw, 15px);
    right: clamp(10px, 2vw, 20px);
    z-index: 30;
    display: flex;
    gap: clamp(4px, 0.8vw, 8px);
}

.music-btn,
.admin-logout-btn {
    background: none;
    border: none;
    /* Oransal font/ikon boyutu */
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: clamp(4px, 1vw, 8px);
    color: var(--surface);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    display: block;
    margin-bottom: 8px;
    opacity: 0.7;
}

.music-btn:hover,
.admin-logout-btn:hover {
    transform: scale(1.15);
    filter: drop-shadow(3px 3px 6px rgba(255, 255, 255, 1));
    opacity: 1;
}

.admin-logout-btn {
    color: var(--success) !important;
}

.admin-logout-btn:hover {
    color: var(--danger) !important;
    transform: scale(1.2) rotate(-10deg);
}

.music-btn i {
    display: block;
    width: 100%;
    height: 100%;
}

.header-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none;
    z-index: 10;
}

.header-overlay .container {
    padding: 0;
    margin: 0;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

.header-text {
    text-align: left;
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    border: none;
    margin-left: 40px;
    pointer-events: auto;
    align-self: flex-end;
}

.header-overlay h1 {
    color: var(--surface);
    font-size: 3rem;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
    transition: color 0.3s ease;
}

.header-overlay h2 {
    color: var(--surface);
    font-size: 5.25rem;
    margin: 0;
    line-height: 1;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.6);
    transition: color 0.3s ease;
}


.header-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 5px 0 0 0;
    line-height: 1;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    font-style: italic;
    transition: color 0.3s ease;
}


.header-photo {
    height: 100%;
    display: flex;
    align-items: center; /* Dikey ortala */
    justify-content: center;
    /* Oransal padding ve margin */
    padding: 0 clamp(10px, 2vw, 20px);
    margin-right: clamp(15px, 3vw, 40px);
    overflow: hidden;
}

.header-photo picture {
    /* Picture elementi de aynı şekilde davransın */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-photo img {
    /* Header container'ından taşmayacak şekilde */
    max-height: 100%;
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0;
    transition: all 0.3s ease;
}

/* Text Box */
.text-box {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    color: var(--text-primary);
    height: 250px;
    max-width: 1200px;
    margin: 20px auto 0;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    background-clip: padding-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    position: sticky;
    top: 20px;
    z-index: 50;
    transition: all 0.4s ease, background 0.3s ease;
    will-change: height, top, padding;
    overflow: hidden; /* ✅ İçerik container'dan taşmaz */
}

/* Text Box Küçük Hali (Scroll'da) */
.text-box.compact {
    height: 120px;
    padding: 15px 0;
    top: 0;
}

.text-box.compact .avatar-circle {
    /* Compact modda daha küçük oran */
    width: clamp(50px, 8vw, 70px);
    height: clamp(50px, 8vw, 70px);
}

.text-box.compact .text-typing-area {
    padding: 10px 40px;
}

.text-box.compact .text-typing-area textarea {
    height: 45px;
    font-size: 0.95rem;
    padding: 10px;
}

.text-box.compact .console-area {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.8rem;
}

.text-box.compact .typing-footer {
    gap: 10px;
}

.avatar-circle {
    /* Oransal boyut: viewport genişliğine göre ama container'dan taşmaz */
    width: clamp(100px, 15vw, 200px);
    height: clamp(100px, 15vw, 200px);
    max-height: 100%; /* ✅ Text-box yüksekliğini aşmaz */
    border-radius: 50%;
    overflow: hidden;
    border: clamp(2px, 0.4vw, 5px) solid var(--accent);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.3);
    margin: 0;
    margin-left: clamp(15px, 3vw, 40px);
    flex-shrink: 0;
    transition: all 0.4s ease;
    will-change: width, height;
}

.avatar-circle picture {
    /* Picture elementi de aynı şekilde */
    width: 100%;
    height: 100%;
    display: block;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Text Typing Area */
.text-typing-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0 40px;
    position: relative;
    transition: padding 0.4s ease;
    max-height: 100%; /* ✅ Text-box yüksekliğini aşmaz */
    overflow: hidden;
}

.text-typing-area textarea {
    width: 100%;
    min-height: 80px; /* ✅ Minimum 2-3 satır */
    max-height: 200px; /* ✅ Maksimum yükseklik */
    background: var(--surface);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
    font-family: inherit;
    color: #1A202C;
    resize: none; /* ✅ Manuel resize kapalı */
    outline: none;
    transition: height 0.2s ease; /* ✅ Smooth büyüme */
    box-sizing: border-box;
    overflow-y: auto; /* ✅ Max'a ulaşınca scroll */
}

.text-typing-area textarea:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.3);
}

.text-typing-area textarea::placeholder {
    color: #718096;
    font-style: italic;
}

.typing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 15px;
}

/* Console/Terminal Area - Her zaman koyu */
.console-area {
    flex: 1;
    background: #0a0e14;
    border: 2px solid var(--success);
    border-radius: 6px;
    padding: 8px 12px;
    min-height: 40px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Courier New', 'Liberation Mono', 'DejaVu Sans Mono', monospace;
    font-size: 0.95rem;
    overflow: hidden;
    box-shadow: 
        inset 0 0 10px rgba(56, 161, 105, 0.2),
        0 0 10px rgba(56, 161, 105, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.console-line {
    display: flex;
    align-items: center;
    color: var(--success);
    line-height: 1.4;
}

.console-prompt {
    color: var(--success);
    font-weight: bold;
    margin-right: 8px;
    text-shadow: 0 0 5px rgba(56, 161, 105, 0.5);
}

.console-text {
    color: var(--success);
    white-space: nowrap;
    overflow: hidden;
    font-feature-settings: normal;
    letter-spacing: 0.02em;
}

.console-text.error {
    color: var(--danger);
    text-shadow: 0 0 5px rgba(229, 62, 62, 0.5);
}

.console-text.success {
    color: var(--success);
    text-shadow: 0 0 5px rgba(72, 187, 120, 0.5);
}

.console-text.info {
    color: var(--accent);
    text-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.console-cursor {
    display: inline-block;
    color: var(--success);
    font-weight: bold;
    margin-left: 2px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}


.char-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: rgba(26, 32, 44, 0.5); /* Soluk siyah */
    font-size: 0.75rem;
    text-align: right;
    font-weight: 600;
    z-index: 10;
    pointer-events: none; /* Tıklamayı engelleme */
    transition: color 0.3s;
}

.btn-gonder {
    background: var(--success);
    color: var(--surface);
    border: 2px solid var(--success);
    /* Icon-only buton: daha küçük, kare */
    padding: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-gonder:hover {
    background: var(--success);
    color: var(--surface);
    transform: translateY(-2px) rotate(15deg);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.5);
}

/* Posts Container */
#posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.post-item {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    color: var(--surface);
    max-width: 1200px;
    margin: 20px auto 0;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-clip: padding-box;
    padding: 20px 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    opacity: 1;
    transform: translateX(0);
    position: relative;
}


.post-item > * {
    position: relative;
    z-index: 1;
}

.post-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--surface);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.post-avatar picture {
    /* Picture elementi de aynı şekilde */
    width: 100%;
    height: 100%;
    display: block;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-body {
    flex: 1;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.post-author {
    color: var(--surface);
    font-weight: 600;
    font-size: 1.1rem;
}

.post-timestamp {
    color: var(--text-secondary);
    opacity: 0.9;
    font-size: 0.875rem;
}

.post-content {
    color: var(--surface) !important;
    font-size: 1.05rem;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.delete-post-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 10px;
}

.delete-post-btn:hover {
    background: rgba(255, 0, 0, 0.6);
}

/* Bölümler */
.section {
    padding: 4rem 0;
}

.alt-bg {
    background-color: var(--bg-primary);
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
}

/* Hizmetler Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-primary);
    font-size: 1rem;
}

/* İletişim Bilgileri */
.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--text-primary);
}

/* Footer */
footer {
    background-color: var(--bg-primary);
    color: var(--surface);
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
}

/* Giriş ve Form Stilleri */
.giris-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.char-count {
    display: block;
    text-align: right;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Butonlar */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--text-secondary);
    color: var(--surface);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-delete {
    background: var(--danger);
    color: var(--surface);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.btn-delete:hover {
    background: var(--danger);
}

/* Mesajlar */
.message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    text-align: center;
}

.message.success {
    background: #d1fae5;
    color: var(--success);
    border: 1px solid #6ee7b7;
}

.message.error {
    background: #fee2e2;
    color: var(--danger);
    border: 1px solid #fca5a5;
}

.message.info {
    background: #dbeafe;
    color: var(--accent);
    border: 1px solid #93c5fd;
}

/* Kullanıcı Bilgisi */
.kullanici-info {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.kullanici-info p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* Post Listesi */
.post-listesi {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #34495e;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-author strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.post-author small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.post-content {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--surface);
    word-wrap: break-word;
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.post-footer small {
    color: var(--text-secondary);
}

.loading,
.no-posts {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

/* Responsive Tasarım */
/* Tablet - Orta Ekranlar */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .posts-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-item {
        padding: 1.2rem;
    }
}

/* Mobil - Küçük Ekranlar */
@media (max-width: 768px) {
    /* Header - Oran korunarak küçülür */
    .header-image {
        /* Mobilde daha küçük oran */
        height: clamp(120px, 18vw, 180px);
    }
    
    .header-overlay h1 {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }
    
    .header-overlay h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .header-text {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* header-clock ve header-music artık otomatik oransal */
    
    /* Avatar - Mobilde GİZLE */
    .avatar-circle {
        display: none; /* ✅ Mobilde avatar görünmez */
    }
    
    /* Text Box */
    .text-box {
        padding: 12px 8px; /* ✅ Padding azaltıldı */
        margin: 12px auto;
        height: auto; /* ✅ İçeriğe göre büyür */
        min-height: 140px;
    }
    
    .text-box.compact {
        padding: 10px 8px; /* ✅ Padding azaltıldı */
        min-height: 100px;
    }
    
    /* Textarea - Mobilde genişler ve büyür */
    .text-typing-area {
        padding: 0 10px; /* ✅ Daha az padding */
    }
    
    .text-typing-area textarea {
        min-height: 60px; /* ✅ 2 satır başlangıç */
        max-height: 200px; /* ✅ Maksimum yükseklik */
        padding: 10px; /* ✅ İç padding azaltıldı */
        padding-bottom: 28px; /* ✅ Sayaç için alan */
        font-size: 0.95rem;
    }
    
    /* Typing Footer - Mobilde de YATAY */
    .typing-footer {
        flex-direction: row; /* ✅ Yatay düzen korunur */
        gap: 8px;
        margin-top: 8px;
    }
    
    .console-area {
        flex: 1; /* ✅ Kalan alanı kaplar */
        min-height: 35px;
        padding: 6px 8px; /* ✅ Padding azaltıldı */
        font-size: 0.8rem;
    }
    
    .text-box.compact .console-area {
        min-height: 28px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    /* Gönder butonu mobilde küçülür */
    .btn-gonder {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    /* Char Counter - Mobilde daha küçük */
    .char-counter {
        font-size: 0.65rem;
        bottom: 6px;
        right: 6px;
    }
    
    /* Posts Container */
    .posts-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    /* Post Items - Mobilde Kompakt */
    .post-item {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .post-author {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .post-author i {
        font-size: 0.75rem;
    }
    
    .post-content {
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0.6rem 0;
    }
    
    .post-timestamp {
        font-size: 0.7rem;
    }
    
    .post-timestamp i {
        font-size: 0.65rem;
    }
    
    /* Delete Button - Mobilde Daha Görünür */
    .btn-delete-post {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        bottom: 8px;
        left: 8px;
    }
    
    /* Hero Section */
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    /* Nav Menu */
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        min-width: 100%;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    /* Section */
    .section h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
}

/* Çok Küçük Mobil Ekranlar */
@media (max-width: 480px) {
    /* Header - Çok küçük ekranlarda minimum boyut */
    .header-image {
        height: clamp(100px, 16vw, 140px);
    }
    
    .header-overlay h1 {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }
    
    .header-overlay h2 {
        font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    }
    
    .header-text {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    /* header-clock otomatik oransal */
    
    /* Avatar - Mobilde GİZLE */
    .avatar-circle {
        display: none; /* ✅ Çok küçük ekranda avatar yok */
    }
    
    /* Text Box */
    .text-box {
        padding: 10px 6px; /* ✅ Padding azaltıldı */
        margin: 10px auto;
        border-radius: 12px;
        height: auto; /* ✅ İçeriğe göre büyür */
        min-height: 110px;
    }
    
    /* Textarea */
    .text-typing-area {
        padding: 0 8px; /* ✅ Daha az padding */
    }
    
    .text-typing-area textarea {
        min-height: 50px; /* ✅ 2 satır */
        max-height: 150px;
        padding: 8px; /* ✅ İç padding azaltıldı */
        padding-bottom: 26px; /* ✅ Sayaç için alan */
        font-size: 0.9rem;
    }
    
    /* Console */
    .console-area {
        flex: 1; /* ✅ Kalan alanı kaplar */
        padding: 5px 6px; /* ✅ Padding azaltıldı */
        font-size: 0.75rem;
        min-height: 32px;
    }
    
    .text-box.compact .console-area {
        font-size: 0.7rem;
        min-height: 26px;
    }
    
    /* Gönder butonu çok küçük ekranda */
    .btn-gonder {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    /* Posts */
    .posts-container {
        padding: 0.8rem;
        gap: 0.6rem;
    }
    
    .post-item {
        padding: 0.8rem;
        border-radius: 6px;
    }
    
    .post-author {
        font-size: 0.8rem;
    }
    
    .post-content {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .post-timestamp {
        font-size: 0.65rem;
    }
    
    /* Delete Button */
    .btn-delete-post {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        bottom: 6px;
        left: 6px;
    }
    
    /* Music Button - Otomatik oransal */
}

/* Login Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--text-secondary);
    position: relative;
    animation: slideIn 0.3s ease;
    transition: background 0.3s ease, border-color 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modal-header h2 {
    color: var(--surface);
    font-size: 1.8rem;
    margin: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--surface);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--success);
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: var(--surface);
    color: #1A202C;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--success);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.2);
}

.form-group input::placeholder {
    color: #718096;
}

.form-actions {
    margin-top: 2rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent));
    color: var(--surface);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

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

.btn-primary i {
    margin-right: 0.5rem;
}

.error-message {
    background: rgba(245, 101, 101, 0.2);
    border: 2px solid var(--danger);
    color: var(--surface);
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.success-message {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid rgba(0, 255, 0, 0.5);
    color: var(--surface);
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Kullanıcı Paneli */
.user-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    animation: slideInFromRight 0.3s ease;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00ff00;
}

.user-info span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-logout {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: var(--surface);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-logout i {
    margin-right: 0.5rem;
}

/* Post Silme Butonu - Sol Alt Köşe */
.btn-delete-post {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    padding: 6px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-delete-post:hover {
    background: var(--danger);
    color: var(--surface);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(245, 101, 101, 0.6);
}

.btn-delete-post i {
    display: block;
}

/* Bildirim Modal - Gizli (Terminal kullanıyoruz) */
#notification-modal {
    display: none !important;
}

.notification-content {
    text-align: center;
    max-width: 400px;
    padding: 2.5rem 2rem;
}

.notification-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.notification-icon.success {
    color: var(--success);
}

.notification-icon.error {
    color: var(--danger);
}

.notification-icon.info {
    color: var(--accent);
}

#notification-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#notification-message {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

#notification-ok {
    min-width: 150px;
}

/* Responsive - Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .notification-content {
        padding: 2rem 1.5rem;
    }
    
    .notification-icon {
        font-size: 3rem;
    }
    
    #notification-title {
        font-size: 1.5rem;
    }
    
    #notification-message {
        font-size: 1rem;
    }
}

