/* Profile Section */
.profile-section {
    min-height: 100vh;
    padding: 100px 0 50px;
}

/* Not Logged In State */
.not-logged-in {
    text-align: center;
    padding: 100px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.not-logged-in i {
    font-size: 5rem;
    color: #ff9933;
    margin-bottom: 30px;
    opacity: 0.8;
}

.not-logged-in h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.not-logged-in p {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 30px;
}

/* Profile Header */
.profile-header {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.profile-cover {
    height: 250px;
    background: linear-gradient(135deg, #ff9933, #ff6600);
    position: relative;
    overflow: hidden;
}

.profile-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
    background-size: 50px 50px;
    background-position: 0 0, 0 25px, 25px -25px, -25px 0px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0, 0 25px, 25px -25px, -25px 0px; }
    100% { background-position: 50px 50px, 50px 75px, 75px 25px, 25px 50px; }
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.btn-edit-cover {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 153, 51, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    z-index: 2;
}

.btn-edit-cover:hover {
    background: rgba(255, 153, 51, 0.2);
    border-color: #ff9933;
}

.profile-info-header {
    padding: 0 40px 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: flex-start;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}

.profile-avatar-section {
    position: relative;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ff9933, #ff8800);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: #010101;
    border: 5px solid #1a1a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.btn-edit-avatar {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: #ff9933;
    border: 3px solid #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #010101;
}

.btn-edit-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 153, 51, 0.5);
}

.profile-details {
    padding-top: 80px;
}

.profile-details h1 {
    font-size: 2.2rem;
    color: #ff9933;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
}

.profile-bio {
    color: #cccccc;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 600px;
}

.profile-meta {
    display: flex;
    gap: 25px;
    color: #aaaaaa;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-meta i {
    color: #ff9933;
}

.profile-actions {
    padding-top: 80px;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: rgba(15, 15, 15, 0.7);
    padding: 10px;
    border-radius: 15px;
    border: 1px solid rgba(255, 153, 51, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.profile-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-tab:hover {
    background: rgba(255, 153, 51, 0.1);
}

.profile-tab.active {
    background: linear-gradient(135deg, #ff9933, #ff8800);
    color: #010101;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

.profile-card {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 25px rgba(0, 0, 0, 0.3);
}

.profile-card h3 {
    color: #ff9933;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
}

/* İstatistikler */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 153, 51, 0.1);
    color: #cccccc;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row strong {
    color: #ff9933;
    font-size: 1.2rem;
}

/* Rozetler */
.badges-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.badge-item {
    aspect-ratio: 1;
    background: rgba(255, 153, 51, 0.1);
    border: 2px solid rgba(255, 153, 51, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.badge-item:hover {
    border-color: #ff9933;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 153, 51, 0.2);
}

.badge-item i {
    font-size: 2rem;
    color: #ff9933;
}

.badge-item.locked {
    opacity: 0.3;
    cursor: not-allowed;
}

.badge-item.locked:hover {
    transform: none;
}

/* Sosyal Medya */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 10px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 153, 51, 0.1);
    border-color: #ff9933;
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.3rem;
    color: #ff9933;
    width: 25px;
}

.social-link.empty {
    opacity: 0.5;
    font-style: italic;
}

/* Aktivite Listesi */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(15, 15, 15, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 153, 51, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ff9933;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 153, 51, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9933;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 1rem;
}

.activity-content p {
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.activity-time {
    color: #888888;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Başarılar */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.achievement-item {
    background: rgba(15, 15, 15, 0.7);
    border: 2px solid rgba(255, 153, 51, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.achievement-item:hover {
    border-color: #ff9933;
    transform: translateY(-5px);
}

.achievement-item i {
    font-size: 2.5rem;
    color: #ff9933;
    margin-bottom: 10px;
}

.achievement-item h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.achievement-item p {
    color: #888888;
    font-size: 0.8rem;
}

.achievement-item.locked {
    opacity: 0.3;
}

/* Karakterler */
.characters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.characters-header h2 {
    color: #ff9933;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.character-card {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 25px rgba(0, 0, 0, 0.3);
}

.character-card:hover {
    transform: translateY(-5px);
    border-color: #ff9933;
    box-shadow: 0 10px 30px rgba(255, 153, 51, 0.2);
}

.character-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.character-header h3 {
    color: #ff9933;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.character-role {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.character-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.character-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.character-status.inactive {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.character-info {
    margin-bottom: 15px;
}

.character-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 153, 51, 0.1);
    color: #cccccc;
}

.character-actions {
    display: flex;
    gap: 10px;
}

.btn-character {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-character-edit {
    background: rgba(255, 153, 51, 0.2);
    color: #ff9933;
}

.btn-character-delete {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Ayarlar */
.settings-grid {
    display: grid;
    gap: 25px;
    max-width: 800px;
}

.settings-card {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(12px);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 25px rgba(0, 0, 0, 0.3);
}

.settings-card h3 {
    color: #ff9933;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9933;
    box-shadow: 0 0 10px rgba(255, 153, 51, 0.2);
}

.setting-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 153, 51, 0.1);
}

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

.setting-info {
    flex: 1;
}

.setting-info strong {
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
}

.setting-info p {
    color: #aaaaaa;
    font-size: 0.9rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 153, 51, 0.3);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #aaaaaa;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(255, 153, 51, 0.3);
    border-color: #ff9933;
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: #ff9933;
}

.danger-zone {
    border-color: rgba(244, 67, 54, 0.5) !important;
}

.danger-zone h3 {
    color: #f44336 !important;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: #ffffff;
}

.btn-danger:hover {
    box-shadow: 0 5px 20px rgba(244, 67, 54, 0.4);
}

/* Profile Modal */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-modal.active {
    opacity: 1;
    visibility: visible;
}

.profile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.profile-modal-content {
    position: relative;
    background: rgba(8, 8, 8, 0.95);
    border: 2px solid #ff9933;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.profile-modal.active .profile-modal-content {
    transform: scale(1);
}

.profile-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 153, 51, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-modal-header h2 {
    color: #ff9933;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-modal-close {
    background: none;
    border: none;
    color: #ff9933;
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.profile-modal-body {
    padding: 30px;
    overflow-y: auto;
}

.color-picker input {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(255, 153, 51, 0.3);
    border-radius: 10px;
    cursor: pointer;
}

.char-counter {
    text-align: right;
    color: #888888;
    font-size: 0.85rem;
    margin-top: 5px;
}

.btn-block {
    width: 100%;
}

/* Empty State */
.empty-characters {
    text-align: center;
    padding: 60px 20px;
    color: #888888;
    grid-column: 1/-1;
}

.empty-characters i {
    font-size: 3rem;
    color: #ff9933;
    opacity: 0.5;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 20px 30px;
    }

    .profile-avatar-section {
        margin: 0 auto;
    }

    .profile-details {
        padding-top: 20px;
    }

    .profile-actions {
        padding-top: 20px;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-bio {
        margin: 0 auto 15px;
    }
}

@media (max-width: 768px) {
    .profile-cover {
        height: 150px;
    }

    .profile-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .profile-details h1 {
        font-size: 1.5rem;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .characters-header {
        flex-direction: column;
        gap: 15px;
    }

    .characters-header .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-info-header {
        padding: 0 15px 25px;
    }

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

