:root {
    --gold: #fbbf24;
    --dark-gold: #f59e0b;
    --bronze: #262626;
    --dark-bronze: #1f1f1f;
    --dragon-red: #ef4444;
    --dark-red: #7f1d1d;
    --parchment: #171717;
    --dark-parchment: #111111;
    --stone-gray: #262626;
    --dark-stone: #171717;
}

body {
    font-family: "Poppins", serif;
    background: linear-gradient(135deg,
            #171717 0%,
            #262626 50%,
            #171717 100%);
}

.medieval-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid var(--bronze);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.medieval-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--gold),
            transparent);
    opacity: 0.6;
}

.medieval-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(251, 191, 36, 0.4);
    border-color: var(--gold);
}

.dragon-button {
    border: 1px solid #f59e0b;
    color: #fbbf24;
    font-weight: 600;
    text-shadow: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.dragon-button:hover {
    background: #860808;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.kingdom-nav {
    background: #1f1f1f;
    border-bottom: 1px solid #fbbf24;
}

.server-online {
    color: #32cd32;
}

.server-offline {
    color: #dc143c;
}

.kingdom-tag {
    background: linear-gradient(45deg,
            var(--bronze) 0%,
            var(--gold) 50%,
            var(--bronze) 100%);
    color: var(--dark-stone);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ancient-scroll {
    background: linear-gradient(145deg, #2c2416 0%, #3d3220 100%);
    border: 3px solid var(--bronze);
    border-radius: 15px;
    position: relative;
}

.ancient-scroll::before,
.ancient-scroll::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
}

.ancient-scroll::before {
    top: -10px;
    left: -10px;
}

.ancient-scroll::after {
    bottom: -10px;
    right: -10px;
}

.dragon-flame {
    animation: flame 2s ease-in-out infinite alternate;
}

@keyframes flame {
    from {
        text-shadow: 0 0 20px var(--dragon-red), 0 0 30px var(--dragon-red),
            0 0 40px var(--dragon-red);
        transform: scale(1);
    }

    to {
        text-shadow: 0 0 30px #ff4500, 0 0 40px #ff4500, 0 0 50px #ff4500;
        transform: scale(1.05);
    }
}

.floating-sword {
    animation: sword-float 4s ease-in-out infinite;
}

@keyframes sword-float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.guild-rank {
    background: linear-gradient(135deg,
            var(--gold) 0%,
            #ffd700 50%,
            var(--gold) 100%);
    color: var(--dark-stone);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-indicator {
    background: linear-gradient(90deg,
            var(--dragon-red) 0%,
            #ff6347 var(--progress, 0%),
            #2f2f2f var(--progress, 0%));
    height: 6px;
    border-radius: 3px;
    border: 1px solid var(--bronze);
}

.rune-decoration {
    position: relative;
}

.rune-decoration::before {
    content: "⚔";
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.5rem;
    opacity: 0.6;
}

.rune-decoration::after {
    content: "⚔";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    color: var(--gold);
    font-size: 1.5rem;
    opacity: 0.6;
}

/* Hero Carousel Styles */
.hero-carousel {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--bronze);
    border-bottom: 3px solid var(--bronze);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 40px 30px 30px;
    color: white;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(251, 191, 36, 0.8);
    color: var(--dark-stone);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Category Cards */
.category-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid var(--bronze);
    transition: all 0.3s ease;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

/* Server List Cards */
.server-list-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid var(--bronze);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

/* Sidebar Styles */
.sidebar-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid var(--bronze);
    border-radius: 12px;
    margin-bottom: 20px;
}

.blog-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid var(--bronze);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--gold);
    transform: translateX(4px);
}

.ad-banner {
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid var(--bronze);
    border-radius: 12px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-weight: bold;
}

/* Bildirim dropdown paneli */
.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 420px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid var(--bronze);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
    animation: notificationDropdownFadeIn 0.3s ease-out;
}

@keyframes notificationDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bildirim item'ları */
.notification-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: linear-gradient(145deg, #374151 0%, #2a2a2a 100%);
}

.notification-item.unread {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 144, 0, 0.1) 100%);
    border-left: 3px solid var(--gold);
}

/* Bildirim badge animasyonu */
.notification-badge {
    animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Scroll bar stilleri */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--bronze);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Loading animasyonu */
.notification-loading {
    animation: notificationSpin 1s linear infinite;
}

@keyframes notificationSpin {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

@media (max-width: 1023px) {
    .notification-panel {
        display: none !important;
    }
}

/* Bildirim buton hover efektleri */
.mark-read-btn {
    transition: all 0.2s ease;
    border-radius: 4px;
}

.mark-read-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    transform: scale(1.1);
}

/* Header bildirim butonu */
.notification-panel button {
    transition: all 0.2s ease;
}

.notification-panel button:hover {
    transform: scale(1.05);
}

/* Dropdown header stilleri */
.notification-dropdown .fantasy-header {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Badge konumu */
.notification-badge {
    font-size: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #1f2937;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Empty state iconları */
.notification-dropdown .fa-bell-slash,
.notification-dropdown .fa-exclamation-triangle {
    opacity: 0.6;
}

/* Footer buton hover efekti */
.notification-dropdown footer a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.notification-item .fa-check-circle {
    color: #10b981;
}

.notification-item .fa-times-circle {
    color: #ef4444;
}

.notification-item .fa-thumbs-up {
    color: #f59e0b;
}

.notification-item .fa-trophy {
    color: #eab308;
}

.notification-item .fa-cog {
    color: #3b82f6;
}

.notification-item .fa-shield-alt {
    color: #ef4444;
}

.notification-item .fa-gift {
    color: #a855f7;
}

.notification-item .fa-wrench {
    color: #f97316;
}

.notification-item .fa-newspaper {
    color: #10b981;
}

.notification-item .fa-comment {
    color: #3b82f6;
}

.notification-item .fa-bell {
    color: #6b7280;
}

/* Panel gölge efekti */
.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--bronze);
}

.notification-dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 21px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #2a2a2a;
}

/* Smooth transitions */
.notification-item * {
    transition: color 0.2s ease;
}

/* Active state */
.notification-item:active {
    transform: scale(0.98);
}

/* Legacy utility classes for old Tailwind-based pages */
.bg-dark-bg { background-color: #1a1a1a; }
.bg-dark-card { background-color: #2a2a2a; }
.bg-dark-input { background-color: #333333; }
.bg-dark-input-focus { background-color: #444444; }
.bg-dark-red { background-color: #8b0000; }
.bg-dark-red-hover { background-color: #a52a2a; }
.bg-success-bg { background-color: #155724; }
.bg-error-bg { background-color: #721c24; }

.text-accent-gold { color: #f4e4bc; }
.text-text-muted { color: #cccccc; }
.text-text-info { color: #999999; }
.text-success-text { color: #d4edda; }
.text-error-text { color: #f8d7da; }

.border-dark-border { border-color: #444444; }
.border-dark-border-light { border-color: #333333; }
.border-success-border { border-color: #28a745; }
.border-error-border { border-color: #dc3545; }

.placeholder-text-info::placeholder { color: #999999; }

.focus\:bg-dark-input-focus:focus { background-color: #444444; }
.hover\:bg-dark-red-hover:hover { background-color: #a52a2a; }
.focus\:border-accent-gold:focus { border-color: #f4e4bc; }
.focus\:ring-accent-gold:focus { box-shadow: 0 0 0 2px #f4e4bc; }
