/* Kingdom Page Specific Styles */

/* Kingdom Header */
.kingdom-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, 
        rgba(10, 10, 26, 0.95), 
        rgba(26, 26, 46, 0.95)),
        url('../images/kingdom-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 2px solid var(--border-gold);
    position: relative;
    overflow: hidden;
}

.kingdom-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 30%,
        rgba(255, 215, 0, 0.15) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.kingdom-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.kingdom-info {
    flex: 1;
}

.kingdom-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.kingdom-title .highlight {
    color: var(--primary-gold);
    display: block;
    font-size: 4rem;
    margin-top: 0.5rem;
}

.kingdom-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.kingdom-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 1.2rem;
    min-width: 180px;
    transition: all 0.3s ease;
}

.kingdom-stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    border: 2px solid var(--border-gold);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kingdom-avatar {
    position: relative;
    width: 300px;
    height: 300px;
}

.kingdom-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

.avatar-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid var(--primary-gold);
    border-radius: 20px;
    pointer-events: none;
    z-index: 2;
    animation: glow 2s ease-in-out infinite alternate;
}

.avatar-frame.legendary {
    border-color: #ff0080;
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
}

.avatar-frame.epic {
    border-color: #9d00ff;
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.5);
}

.avatar-frame.rare {
    border-color: #00b4ff;
    box-shadow: 0 0 30px rgba(0, 180, 255, 0.5);
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    to {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

/* Kingdom Layout */
.kingdom-layout {
    padding: 6rem 0;
    background: var(--dark-purple);
    position: relative;
}

.kingdom-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(65, 105, 225, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.kingdom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.kingdom-building {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.kingdom-building::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.kingdom-building:hover::before {
    transform: scaleX(1);
}

.kingdom-building:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
}

/* Specific building colors */
.kingdom-building.castle {
    border-color: rgba(255, 215, 0, 0.5);
}

.kingdom-building.castle::before {
    background: linear-gradient(90deg, var(--primary-gold), #ffa500);
}

.kingdom-building.barracks {
    border-color: rgba(178, 34, 34, 0.5);
}

.kingdom-building.barracks::before {
    background: linear-gradient(90deg, var(--royal-red), #ff6b6b);
}

.kingdom-building.treasury {
    border-color: rgba(255, 215, 0, 0.5);
}

.kingdom-building.treasury::before {
    background: linear-gradient(90deg, var(--primary-gold), #ffd700);
}

.kingdom-building.marketplace {
    border-color: rgba(34, 139, 34, 0.5);
}

.kingdom-building.marketplace::before {
    background: linear-gradient(90deg, var(--royal-green), #51cf66);
}

.kingdom-building.academy {
    border-color: rgba(65, 105, 225, 0.5);
}

.kingdom-building.academy::before {
    background: linear-gradient(90deg, var(--royal-blue), #4dabf7);
}

.kingdom-building.empty-plot {
    border-color: rgba(255, 255, 255, 0.3);
    border-style: dashed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kingdom-building.empty-plot:hover {
    border-color: var(--primary-gold);
    border-style: solid;
}

.building-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.building-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kingdom-building:hover .building-image img {
    transform: scale(1.1);
}

.building-level {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gold);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.building-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.building-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.building-info p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.building-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.building-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.building-stats i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

/* Building specific buttons */
.btn-upgrade,
.btn-recruit,
.btn-deposit,
.btn-trade,
.btn-research,
.btn-build {
    padding: 1rem;
    border-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-upgrade {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: #000;
}

.btn-recruit {
    background: linear-gradient(45deg, var(--royal-red), #ff6b6b);
    color: white;
}

.btn-deposit {
    background: linear-gradient(45deg, var(--primary-gold), #ffd700);
    color: #000;
}

.btn-trade {
    background: linear-gradient(45deg, var(--royal-green), #51cf66);
    color: white;
}

.btn-research {
    background: linear-gradient(45deg, var(--royal-blue), #4dabf7);
    color: white;
}

.btn-build {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-upgrade:hover,
.btn-recruit:hover,
.btn-deposit:hover,
.btn-trade:hover,
.btn-research:hover,
.btn-build:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.empty-plot .building-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
}

.empty-plot .building-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.empty-plot:hover .building-image i {
    color: var(--primary-gold);
    transform: scale(1.2);
}

/* Kingdom Resources */
.kingdom-resources {
    padding: 6rem 0;
    background: var(--medium-purple);
    border-top: 2px solid var(--border-gold);
    border-bottom: 2px solid var(--border-gold);
    position: relative;
}

.kingdom-resources::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.05), 
        rgba(65, 105, 225, 0.05));
    pointer-events: none;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.resource-card:hover::before {
    transform: translateX(100%);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.resource-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.resource-icon.gold {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.4));
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.resource-icon.wood {
    background: linear-gradient(45deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.4));
    color: #8b4513;
    border: 2px solid #8b4513;
}

.resource-icon.stone {
    background: linear-gradient(45deg, rgba(128, 128, 128, 0.2), rgba(169, 169, 169, 0.4));
    color: #808080;
    border: 2px solid #808080;
}

.resource-icon.iron {
    background: linear-gradient(45deg, rgba(192, 192, 192, 0.2), rgba(211, 211, 211, 0.4));
    color: #c0c0c0;
    border: 2px solid #c0c0c0;
}

.resource-icon.food {
    background: linear-gradient(45deg, rgba(34, 139, 34, 0.2), rgba(50, 205, 50, 0.4));
    color: var(--royal-green);
    border: 2px solid var(--royal-green);
}

.resource-icon.mana {
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.2), rgba(147, 112, 219, 0.4));
    color: #8a2be2;
    border: 2px solid #8a2be2;
}

.resource-info {
    flex: 1;
}

.resource-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.resource-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    margin-bottom: 0.5rem;
}

.resource-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.resource-change.positive {
    color: var(--royal-green);
}

.resource-change.negative {
    color: var(--royal-red);
}

.resource-change i {
    font-size: 0.8rem;
}

/* Army Overview */
.army-overview {
    padding: 6rem 0;
    background: var(--dark-purple);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.btn-recruit-all {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: #000;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-recruit-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.army-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.army-unit {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.army-unit:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.unit-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.unit-info {
    flex: 1;
}

.unit-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.unit-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.unit-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.unit-stats i {
    color: var(--primary-gold);
    font-size: 1rem;
}

.unit-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: inline-block;
}

.unit-actions {
    flex-shrink: 0;
}

.btn-train {
    background: linear-gradient(45deg, var(--royal-blue), #4dabf7);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-train:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(65, 105, 225, 0.3);
}

/* Building Upgrade Modal */
.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

.upgrade-modal-content {
    background: var(--medium-purple);
    border: 3px solid var(--border-gold);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.upgrade-modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade-modal-header h2 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin: 0;
}

.upgrade-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.upgrade-close:hover {
    color: var(--primary-gold);
}

.upgrade-modal-body {
    padding: 2rem;
}

.upgrade-current {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.current-level,
.next-level {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 2rem;
}

.level-badge {
    display: inline-block;
    background: var(--primary-gold);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.current-level h3,
.next-level h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.level-stats {
    list-style: none;
}

.level-stats li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.level-stats i {
    color: var(--primary-gold);
}

.upgrade-cost {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--border-gold);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.upgrade-cost h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
    text-align: center;
}

.cost-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.cost-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-item i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.cost-details {
    flex: 1;
}

.cost-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.cost-name {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.upgrade-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-upgrade-confirm {
    background: linear-gradient(45deg, var(--royal-green), #51cf66);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-upgrade-cancel {
    background: transparent;
    border: 2px solid var(--royal-red);
    color: var(--royal-red);
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upgrade-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34, 139, 34, 0.3);
}

.btn-upgrade-cancel:hover {
    background: var(--royal-red);
    color: white;
}

/* Building Queue */
.building-queue {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--medium-purple);
    border: 2px solid var(--border-gold);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.queue-header h3 {
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin: 0;
}

.queue-count {
    background: var(--primary-gold);
    color: #000;
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

.queue-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.queue-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.queue-details {
    flex: 1;
}

.queue-building {
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.queue-level {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.queue-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Kingdom Notifications */
.kingdom-notifications {
    position: fixed;
    top: 6rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.notification {
    background: var(--medium-purple);
    border: 2px solid var(--border-gold);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: rgba(34, 139, 34, 0.2);
    color: var(--royal-green);
    border: 2px solid var(--royal-green);
}

.notification.warning .notification-icon {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.notification.error .notification-icon {
    background: rgba(178, 34, 34, 0.2);
    color: var(--royal-red);
    border: 2px solid var(--royal-red);
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.notification-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.notification-close:hover {
    color: var(--primary-gold);
}

/* Kingdom Progress */
.kingdom-progress {
    padding: 3rem 0;
    background: var(--medium-purple);
    border-top: 2px solid var(--border-gold);
}

.progress-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-header {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-header h3 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.progress-header p {
    color: var(--text-gray);
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light);
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-rewards {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.reward-item {
    text-align: center;
}

.reward-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.reward-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kingdom Map View */
.kingdom-map {
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin: 2rem 0;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    height: 100%;
    gap: 2px;
    padding: 10px;
}

.map-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.map-tile:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-gold);
}

.map-tile.occupied {
    background: rgba(34, 139, 34, 0.2);
    border-color: var(--royal-green);
}

.map-tile.occupied::after {
    content: '🏰';
    font-size: 1.5rem;
}

.map-tile.empty {
    background: rgba(255, 255, 255, 0.05);
}

.map-tile.empty:hover::after {
    content: '+';
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.tile-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-purple);
    border: 2px solid var(--border-gold);
    border-radius: 10px;
    padding: 1rem;
    z-index: 10;
    min-width: 200px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-tile:hover .tile-info {
    opacity: 1;
}

/* Kingdom Defense System */
.kingdom-defense {
    padding: 3rem 0;
    background: var(--dark-purple);
    border-top: 2px solid var(--border-gold);
}

.defense-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.defense-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gold);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.defense-stat h4 {
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.defense-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-light);
    font-family: 'Cinzel', serif;
}

.defense-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}