/* ============================================
   KARAKTER SAYFASI ÖZEL CSS
   Sadece karakter.php için kullanılır
   Forum temasını etkilemez
   ============================================ */

/* Uyarı Box */
#uyari_box {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(238, 90, 111, 0.35);
    margin: 20px auto;
    max-width: 600px;
    animation: uyariSlideIn 0.4s ease-out;
}

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

/* Container */
.kp-container {
    background: linear-gradient(135deg, #e9e9e9 0%, #f5f5f5 100%);
    padding: 30px;
    color: #333;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Tab Header - Modern Design */
.kp-tab-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    flex-wrap: wrap;
    justify-content: center;
}

.kp-tab-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 16px 28px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.3px;
}

.kp-tab-item i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.kp-tab-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s;
}

.kp-tab-item:hover::before {
    left: 100%;
}

.kp-tab-item:hover {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.kp-tab-item:hover i {
    transform: scale(1.1);
}

.kp-tab-item.active {
    background: linear-gradient(135deg, #1e1e1e 0%, #3a3a3a 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(30, 30, 30, 0.35);
    transform: translateY(-2px) scale(1.02);
}

.kp-tab-item.active i {
    color: #ffffff;
    transform: scale(1.15);
}

.kp-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #888888, transparent);
    border-radius: 2px 2px 0 0;
}

/* Main Wrapper */
.kp-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    animation: fadeInUp 0.5s ease-out;
}

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

/* Tab Content */
.kp-tab-content {
    background: #fff;
    border: none;
    padding: 25px;
    display: none;
    gap: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.kp-tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #232323, #a3a3a3, #dcdcdc);
}

/* Column */
.kp-column {
    flex: 1;
}

/* Stat Row */
.kp-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-left: 3px solid #e0e0e0;
}

.kp-stat-row span:first-child {
    font-weight: 600;
    color: #444;
}

/* Progress */
.kp-progress {
    width: 90px;
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.kp-progress .progress {
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.kp-progress .progress-bar {
    transition: width 0.6s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    height: 100%;
    max-width: 100%;
}

/* Badges */
.karakter-badge {
    background: linear-gradient(135deg, #888 0%, #777 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(136, 136, 136, 0.3);
}

.karakter-badge-dark {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 102, 102, 0.3);
}

.karakter-badge-circle {
    background: linear-gradient(135deg, #888 0%, #777 100%);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(136, 136, 136, 0.35);
}

/* Sidebar */
.kp-sidebar {
    background: #fff;
    border: none;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Profile Header */
.kp-profile-header {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    background: linear-gradient(135deg, #1e1e1e 0%, #888888 100%);
    border-bottom: none;
}

.kp-level-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: #fff;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Avatar */
.kp-avatar-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #eee;
    border: 4px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.kp-avatar-box img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.kp-avatar-box h4 {
    margin: 15px 0 10px;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Online Status */
.kp-online-status {
    width: 80px;
    height: 4px;
    background: #2ecc71;
    margin: 10px auto 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.5);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Info List */
.kp-info-list {
    padding: 20px;
}

.kp-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.kp-info-item:hover {
    background: #fafafa;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 6px;
}

.kp-info-item:last-child {
    border-bottom: none;
}

.kp-info-item span:first-child {
    color: #666;
    font-weight: 600;
}

.kp-info-val {
    background: linear-gradient(135deg, #eee 0%, #e5e5e5 100%);
    padding: 4px 12px;
    border-radius: 12px;
    color: #333;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Activity Chart */
.kp-activity-chart {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.kp-activity-header {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kp-activity-header i {
    color: #3498db;
}

.kp-chart-container {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.kp-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.kp-bar {
    width: 100%;
    background: linear-gradient(135deg, #1e1e1e 0%, #888888 100%);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 5px;
}

.kp-bar:hover {
    background: linear-gradient(135deg, #888888 0%, #1e1e1e 100%);
    transform: translateY(-2px);
}

.kp-bar-label {
    font-size: 10px;
    color: #666;
    font-weight: 600;
    text-align: center;
}

.kp-chart-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
    color: #888;
}

.kp-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kp-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e1e1e 0%, #888888 100%);
}

/* Achievements Panel */
.achievements-panel {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.panel-header {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
    color: #333;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.achievement-slot {
    aspect-ratio: 1 / 1;
    border: 2px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 8px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    transition: all 0.3s ease;
    overflow: hidden;
}

.achievement-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.achievement-slot:hover::before {
    transform: translateX(100%);
}

.achievement-slot:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.icon-box {
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(1);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.achievement-slot:hover .icon-box {
    filter: grayscale(0.5);
    opacity: 0.6;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Achievement cursor */
.achievement-slot {
    position: relative;
    cursor: help;
}

/* Tables */
.kp-tab-content table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.kp-tab-content td,
.kp-tab-content th {
    border: none;
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.kp-tab-content tr:nth-child(even) {
    background-color: #fafafa;
}

.kp-tab-content th {
    padding-top: 16px;
    padding-bottom: 16px;
    text-align: left;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.kp-tab-content th:first-child {
    border-top-left-radius: 8px;
}

.kp-tab-content th:last-child {
    border-top-right-radius: 8px;
}

/* Sicil */
.sicil-entegre {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sicil-blok {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.sicil-baslik {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.sicil-baslik i {
    color: #888888;
    font-size: 20px;
}

.sicil-baslik.alt-cizgi {
    border-bottom: 3px solid #2a2a2a;
    padding-bottom: 10px;
}

.sicil-mesaj {
    background: linear-gradient(135deg, #cacaca 0%, #d5d5d5 100%);
    border-left: 4px solid #b70000;
    color: #b70000;
    padding: 20px;
    font-size: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(183, 0, 0, 0.15);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sicil-mesaj::before {
    content: '⚠';
    font-size: 24px;
    flex-shrink: 0;
    font-weight: normal;
}

.sicil-mesaj strong {
    font-weight: 800;
    margin-right: 4px;
}

/* Form Container */
.kp-form-container {
    padding: 25px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px;
}

.kp-column-sifre {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kp-input {
    width: 100%;
    height: 48px;
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fff;
}

.kp-input:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
    transform: translateY(-2px);
}

.kp-input::placeholder {
    color: #999;
}

.kp-btn-green {
    width: 100%;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

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

.kp-btn-green:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    box-shadow: none;
}

#kp-response {
    display: none;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    font-weight: 600;
    animation: uyariSlideIn 0.3s ease-out;
}

.success-msg {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
    border: 2px solid #4ade80;
    box-shadow: 0 3px 12px rgba(74, 222, 128, 0.2);
}

.error-msg {
    background: linear-gradient(135deg, #fdeaea 0%, #fecaca 100%);
    color: #b91c1c;
    border: 2px solid #f87171;
    box-shadow: 0 3px 12px rgba(248, 113, 113, 0.2);
}

/* Responsive */
@media (max-width: 850px) {
    .kp-main-wrapper {
        grid-template-columns: 1fr;
    }

    .kp-tab-content {
        flex-direction: column;
    }

    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .kp-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 600px) {
    .kp-container {
        padding: 15px;
    }

    .kp-tab-header {
        gap: 6px;
    }

    .kp-tab-item {
        padding: 10px 16px;
        font-size: 12px;
    }

    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Borsa Container */
.borsa-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    overflow: hidden;
}

#borsaCanvas {
    width: 100%;
    height: 500px;
    display: block;
}

.borsa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.borsa-maintenance {
    text-align: center;
    padding: 40px 60px;
    animation: fadeInScale 0.5s ease-out;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(231, 76, 60, 0.3);
}

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

.borsa-maintenance i {
    font-size: 64px;
    color: #e74c3c;
    margin-bottom: 20px;
    animation: rotateTool 2s ease-in-out infinite;
}

@keyframes rotateTool {
    0%, 100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

.borsa-maintenance h2 {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.borsa-maintenance p {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Progress bar tooltip fix */
.kp-progress {
    position: relative;
    cursor: help;
}

/* İstatistik Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-info p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

