/* =========================== */
/* CSS/SOCIAL.CSS - Sosyal Platform */
/* =========================== */

/* ----------------------------------------------------
   1. GENEL SOSYAL SAYFASI
---------------------------------------------------- */
.social-page {
    padding-top: 70px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--color-background-dark) 0%, #0a1f0f 100%);
}

.social-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    height: calc(100vh - 70px);
    overflow: hidden;
}

/* ----------------------------------------------------
   2. SIDEBAR
---------------------------------------------------- */
.social-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow: hidden;
}

.sidebar-card {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 20px;
}

.sidebar-card h3 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

/* Online Users */
.online-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.online-user:hover {
    background: rgba(255, 255, 255, 0.05);
}

.online-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}

.online-avatar.admin-avatar {
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.online-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.online-name {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.online-profession {
    font-size: 0.75rem;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--color-success);
}

/* Stats */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.stat-row span:first-child {
    color: #888;
    font-size: 0.9rem;
}

.stat-row span:last-child {
    color: var(--color-primary);
    font-weight: 600;
}

.loading, .empty {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}

/* ----------------------------------------------------
   3. CHAT SECTION
---------------------------------------------------- */
.social-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-section {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.chat-header h2 {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

.chat-header h2::before {
    content: "💬 ";
}

.chat-status {
    color: var(--color-success);
    font-size: 0.85rem;
}

.chat-status::before {
    content: "🟢 ";
}

/* Chat Messages Container */
.chat-messages-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.chat-messages {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-welcome {
    text-align: center;
    padding: 40px;
    color: #888;
}

.message-welcome p:first-child {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.message-welcome p:first-child::before {
    content: "👋 ";
}

.message-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.message-item.own {
    background: rgba(225, 192, 0, 0.08);
    border-left-color: var(--color-primary);
}

.message-item.admin-message {
    background: rgba(220, 20, 60, 0.1);
    border-left-color: #DC143C;
}

.message-item.admin-message .message-text {
    color: #ffcccc;
}

.message-item.king-message {
    background: rgba(225, 192, 0, 0.15);
    border-left-color: #FFD700;
}

.message-item.mod-message {
    background: rgba(30, 144, 255, 0.1);
    border-left-color: #1E90FF;
}

.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.message-avatar.admin-avatar {
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.message-author {
    font-weight: 600;
    color: var(--color-text-light);
}

.message-author.admin {
    color: #ff6b6b;
    text-shadow: 0 0 5px rgba(220, 20, 60, 0.3);
}

.message-author.king {
    color: #FFD700;
}

.message-author.moderator {
    color: #1E90FF;
}

.role-badge-small {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.role-badge-small.admin {
    background: rgba(220, 20, 60, 0.3);
    color: #ff6b6b;
    border: 1px solid rgba(220, 20, 60, 0.5);
}

.role-badge-small.king {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.role-badge-small.mod {
    background: rgba(30, 144, 255, 0.2);
    color: #1E90FF;
    border: 1px solid rgba(30, 144, 255, 0.4);
}

.message-profession {
    font-size: 0.75rem;
}

.message-time {
    color: #666;
    font-size: 0.75rem;
}

.message-text {
    color: #ccc;
    line-height: 1.6;
    word-break: break-word;
}

.message-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-menu {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #666;
    transition: all 0.3s;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1;
}

.btn-menu:hover {
    color: var(--color-primary);
    background: rgba(225, 192, 0, 0.1);
}

.message-menu-modal {
    position: fixed;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 5px 0;
    min-width: 150px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.message-menu-content {
    display: flex;
    flex-direction: column;
}

.menu-item {
    background: none;
    border: none;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    color: #ccc;
    font-size: 0.9rem;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-item.like:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.menu-item.delete:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    color: #888;
}

.like-button:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.like-button.liked {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.like-button .heart {
    font-size: 1rem;
    transition: transform 0.2s;
}

.like-button:hover .heart {
    transform: scale(1.2);
}

.like-count {
    font-weight: 600;
}

.message-header-with-menu {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.message-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.message-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s;
    line-height: 1;
}

.message-menu-btn:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Chat Input */
.chat-input-area {
    padding: 20px 25px;
    border-top: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.chat-form {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-border);
    border-radius: 25px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(225, 192, 0, 0.05);
}

.chat-input::placeholder {
    color: #666;
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-send {
    padding: 14px 25px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    border-radius: 25px;
    color: var(--color-text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(225, 192, 0, 0.3);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-hints {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 0.75rem;
    color: #666;
}

.email-warning {
    text-align: center;
    padding: 10px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.email-warning a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ----------------------------------------------------
   4. SCROLLBAR
---------------------------------------------------- */
.chat-messages::-webkit-scrollbar,
.online-list::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.online-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb,
.online-list::-webkit-scrollbar-thumb {
    background: var(--color-dark-green);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.online-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ----------------------------------------------------
   5. MOBİL UYUMLULUK
---------------------------------------------------- */
@media (max-width: 900px) {
    .social-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .social-sidebar {
        display: none;
    }

    .chat-section {
        height: calc(100vh - 100px);
    }

    .chat-messages-container {
        position: relative;
        flex: 1;
    }

    .chat-messages {
        position: relative;
        max-height: calc(100vh - 250px);
    }

    .message-item {
        gap: 10px;
        padding: 12px;
    }

    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .message-header {
        gap: 5px;
    }

    .chat-form {
        flex-direction: column;
    }

    .btn-send {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .chat-messages {
        padding: 15px;
        max-height: calc(100vh - 230px);
    }

    .chat-input-area {
        padding: 15px;
    }

    .message-welcome {
        padding: 20px;
    }

    .message-welcome p:first-child {
        font-size: 1.1rem;
    }

    .message-menu-modal {
        left: 50% !important;
        transform: translateX(-50%);
    }
}

/* ----------------------------------------------------
   6. LOA_SOCIAL HUB & DASHBOARD
---------------------------------------------------- */
.social-hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fadeIn 0.4s ease-out;
}

.hub-header {
    text-align: center;
    margin-bottom: 10px;
}

.hub-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-header p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.hub-card {
    background: rgba(18, 18, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hub-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(18, 18, 18, 0.85);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.hub-card-icon {
    background: rgba(255, 255, 255, 0.03);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 5px;
    display: grid;
    place-items: center;
    place-content: center;
    font-size: 2rem;
    line-height: 80px;
    text-align: center;
    overflow: hidden;
}

.hub-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.hub-card p {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.btn-hub {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffd700 0%, #e1c000 100%);
    color: #000 !important;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(225, 192, 0, 0.3);
}

.btn-hub:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #ffe033 0%, #ffd700 100%);
    box-shadow: 0 6px 20px rgba(225, 192, 0, 0.5);
}

/* ----------------------------------------------------
   7. REWARDS INTERFACE
---------------------------------------------------- */
.rewards-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fadeIn 0.4s ease-out;
}

.rewards-header {
    text-align: center;
}

.rewards-header h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.rewards-header p {
    color: #aaa;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.reward-tier-card {
    background: rgba(18, 18, 18, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.reward-tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.reward-tier-gold::before { background: linear-gradient(90deg, #ffd700, #ffa500); }
.reward-tier-silver::before { background: linear-gradient(90deg, #c0c0c0, #a9a9a9); }
.reward-tier-bronze::before { background: linear-gradient(90deg, #cd7f32, #8b5a2b); }

.reward-tier-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-tier-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.reward-tier-gold .reward-tier-badge { background: #ffd700; color: #000; }
.reward-tier-silver .reward-tier-badge { background: #c0c0c0; color: #000; }
.reward-tier-bronze .reward-tier-badge { background: #cd7f32; color: #000; }

.reward-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reward-items-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: #ccc;
}

.reward-items-list li i {
    color: var(--color-primary);
    font-size: 0.8rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sezon Sonu Etkinlik Sekmeleri ve Görev Kartları */
.rewards-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.rewards-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rewards-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.rewards-tab-btn.active {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(225, 192, 0, 0.3);
}

.rewards-tab-content {
    animation: fadeIn 0.4s ease forwards;
}

.rewards-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 992px) {
    .rewards-section-grid {
        grid-template-columns: 1fr;
    }
}

.rewards-card {
    background: rgba(18, 18, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(12px);
}

.rewards-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quest-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

.quest-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.quest-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quest-title {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.quest-desc {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.4;
}

.quest-progress {
    background: rgba(225, 192, 0, 0.1);
    border: 1px solid rgba(225, 192, 0, 0.2);
    color: var(--color-primary);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

.rewards-grid-mini {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
