/* ===================================================
   GTA ONLINE FORUM - POSTBIT STYLES
   =================================================== */

/* Post Container */
.gta-post {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: box-shadow 0.3s ease;
}

.gta-post:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.5);
}

/* ---- POSTBIT HEADER ---- */
.gta-postbit-header {
    display: flex;
    align-items: stretch;
    background-color: #0f0f23;
    background-image: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 180px;
    border-bottom: 2px solid #f5a623;
}

.gta-postbit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 30, 0.4);
    z-index: 1;
}

/* Kullanıcı arkaplanı varsa: overlay kaldır (background inline style ile gelir) */
.gta-postbit-header.has-bg .gta-postbit-overlay {
    background: transparent;
}

.gta-postbit-header > *:not(.gta-postbit-overlay) {
    position: relative;
    z-index: 2;
}

/* ---- SOL: Kullanıcı Bölümü ---- */
.gta-user-section {
    display: flex;
    align-items: stretch;
    padding: 20px;
    flex: 1;
    gap: 18px;
    min-width: 0;
}

.gta-avatar-wrapper {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.gta-avatar {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    border: 3px solid #f5a623;
    object-fit: cover;
    display: block; /* Removes the bottom text-descender gap */
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gta-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

.gta-avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    border: 3px solid #f5a623;
    background: linear-gradient(135deg, #2a2a4a, #1a1a3e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #f5a623;
}

/* Kullanıcı Bilgileri */
.gta-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gta-username {
    margin-bottom: 8px;
}

.gta-username a {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
    transition: color 0.2s ease, background 0.2s ease;
    background: rgba(20, 20, 50, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 0;
    border-radius: 6px;
    border: 1px solid rgba(58, 58, 90, 0.5);
    display: inline-block;
    width: 160px;
    text-align: center;
    box-sizing: border-box;
}

.gta-username a:hover {
    color: #f5a623;
    background: rgba(20, 20, 50, 0.75);
}

.gta-online-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    font-size: 11px;
    z-index: 10;
    background: #0f0f23;
    border-radius: 50%;
    padding: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f5a623;
    box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

.gta-online-badge.is-online {
    color: #4caf50;
    animation: pulse-online 2s infinite;
    text-shadow: 0 0 5px #4caf50;
}

.gta-online-badge.is-offline {
    color: #7a7a8c;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #4caf50; }
    50% { opacity: 0.6; box-shadow: 0 0 2px #4caf50; }
}

/* Grup Badge */
.gta-group-badge {
    display: inline-block;
    margin-bottom: 8px;
    background: rgba(20, 20, 50, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 0;
    border-radius: 6px;
    border: 1px solid rgba(58, 58, 90, 0.5);
    width: 160px;
    text-align: center;
    box-sizing: border-box;
}

.gta-group-badge img {
    vertical-align: middle;
    margin: 0 1px;
}

/* Yöneticilerin Verdiği Rozetler/Ranklar */
.gta-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(30, 30, 40, 0.7);
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.gta-user-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: transform 0.2s ease;
}

.gta-user-badge:hover {
    transform: translateY(-2px);
}

.gta-user-badge img {
    max-height: 24px;
    width: auto;
    object-fit: contain;
}

.gta-user-title {
    font-size: 12px;
    color: #8888aa;
    margin-bottom: 6px;
    font-style: italic;
}

.gta-user-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gta-user-stats .gta-stat {
    font-size: 12px;
    color: #9999bb;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gta-user-stats .gta-stat i {
    color: #f5a623;
    font-size: 11px;
}

/* ---- SAĞ: Karakter Kartı ---- */
.gta-character-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    flex-shrink: 0;
}

.gta-character-card {
    background: rgba(20, 20, 50, 0.85);
    border: 1px solid #3a3a5a;
    border-radius: 8px;
    padding: 12px;
    min-width: 280px;
    backdrop-filter: blur(10px);
}

.gta-character-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gta-character-avatar {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #4a4a6a;
}

.gta-character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gta-char-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a4a, #1a1a3e);
    color: #f5a623;
    font-size: 24px;
}

.gta-character-info {
    flex: 1;
    min-width: 0;
}

.gta-character-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.gta-character-detail {
    font-size: 11px;
    color: #9999bb;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gta-character-detail span {
    color: #ccccdd;
    font-weight: 600;
}

/* Level Badge */
.gta-level-badge {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f5a623, #c88a15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(245, 166, 35, 0.4);
    border: 2px solid #fff;
}

.gta-level-number {
    font-size: 18px;
    font-weight: 900;
    color: #1a1a2e;
}

.gta-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 130px;
}

/* Özel arkaplan eklendiğinde stats kısmını okunabilir yapmak için kutu içine al */
.gta-postbit-header.has-bg .gta-stats-panel {
    background: rgba(20, 20, 50, 0.85);
    border: 1px solid #3a3a5a;
    border-radius: 8px;
    padding: 12px;
    backdrop-filter: blur(10px);
}


.gta-stat-bar {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gta-stat-label {
    font-size: 10px;
    color: #8888aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.gta-stat-track {
    width: 100%;
    height: 6px;
    background: #2a2a4a;
    border-radius: 3px;
    overflow: hidden;
}

.gta-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #2196f3);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.gta-stat-fill.gta-fill-red {
    background: linear-gradient(90deg, #ff4a4a, #f44336);
}

.gta-stat-fill.gta-fill-green {
    background: linear-gradient(90deg, #4aff4a, #4caf50);
}

/* ---- POST İÇERİK ---- */
.gta-post-content {
    padding: 0;
    background: #16162b;
}

.gta-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(245, 166, 35, 0.08);
    border-bottom: 1px solid #2a2a4a;
    flex-wrap: wrap;
}

.gta-post-icon img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.gta-post-info a {
    color: #f5a623;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.gta-post-info a:hover {
    color: #ffc107;
}

.gta-post-date {
    font-size: 12px;
    color: #7777aa;
    margin-left: auto;
}

.gta-post-date i {
    margin-right: 4px;
    color: #f5a623;
}

.gta-post-body {
    padding: 15px 20px;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    line-height: 1.7;
    min-height: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gta-post-body a {
    color: #2271b1;
}

.gta-post-body a:hover {
    color: #135e96;
}

/* Alıntı */
.gta-post-body .quoteheader,
.gta-post-body blockquote,
.gta-post-body .quote {
    background: #f5f5f5;
    border-left: 3px solid #f5a623;
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 0 6px 6px 0;
    color: #555;
}

.gta-post-body .quoteheader {
    font-weight: 700;
    color: #333;
    padding-bottom: 0;
    margin-bottom: 0;
    border-radius: 0 6px 0 0;
}

/* Signature */
.gta-signature {
    border-top: 1px solid #2a2a4a;
    padding: 8px 20px;
    margin-top: 0;
}

.gta-signature-content {
    font-size: 12px;
    color: #6666aa;
    line-height: 1.5;
    max-height: 150px;
    overflow: hidden;
}

.gta-signature-content img {
    max-width: 400px;
    max-height: 100px;
}

/* Modified */
.gta-modified {
    padding: 8px 20px;
    font-size: 11px;
    color: #6666aa;
}

.gta-modified i {
    margin-right: 4px;
}

/* ---- ALT BAR ---- */
.gta-post-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6px 15px;
    background: #12122a;
    border-top: 1px solid #2a2a4a;
    gap: 6px;
    flex-wrap: wrap;
}

.gta-post-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.gta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    color: #9999bb;
    background: #1e1e3a;
    border: 1px solid #3a3a5a;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.gta-action-btn:hover {
    color: #f5a623;
    border-color: #f5a623;
    background: rgba(245, 166, 35, 0.1);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .gta-postbit-header {
        flex-direction: column;
    }
    
    .gta-character-section {
        flex-direction: column;
        align-items: flex-start;
        border-top: 1px solid #2a2a4a;
        width: 100%;
    }

    .gta-character-card {
        min-width: unset;
        width: 100%;
    }

    .gta-stats-panel {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .gta-user-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .gta-avatar {
        width: 90px;
        height: 90px;
    }

    .gta-avatar-placeholder {
        width: 90px;
        height: 90px;
        font-size: 30px;
    }

    .gta-user-stats {
        justify-content: center;
    }

    .gta-post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .gta-post-date {
        margin-left: 0;
    }
}


/* ---- GTA RANK BADGES ---- */
.gta-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(15, 15, 25, 0.7);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 166, 35, 0.2);
    margin-top: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.gta-user-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gta-user-badge:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 166, 35, 0.4);
    z-index: 10;
}

/* Hide Default SMF Logo */
img#smflogo, .smflogo, img[src*="smflogo"] {
    display: none !important;
}

/* Özel PM Butonu (Profil Teması) */
.gta-user-pm .profile-action-btn {
    width: 150px; 
    justify-content: center; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 8px 12px; 
    background: rgba(20, 20, 50, 0.85); 
    backdrop-filter: blur(10px);
    color: #ffffff !important; 
    text-decoration: none !important; 
    border-radius: 6px; 
    font-size: 13px; 
    font-weight: 700; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); 
    transition: all 0.2s; 
    border: 1px solid #3a3a5a;
    box-sizing: border-box;
}
.gta-user-pm .profile-action-btn:hover { 
    background: #e67e22; 
    border-color: #d35400; 
    text-shadow: none; 
}
.gta-user-pm .profile-action-btn i { 
    font-size: 12px; 
}
