/* ================================
   DJINNS SHOP - MODERN DESIGN V1
   Account Management Style
   ================================ */

:root {
    --primary-bg: #0f141a;
    --secondary-bg: #1a2332;
    --border-color: #2a3440;
    --accent-cyan: #00ffaa;
    --text-light: #e6f8ff;
    --text-muted: #a8b3c2;
    --error-red: #ff4444;
    --success-green: #7AF972;
    --warning-yellow: #F9F572;
    --blue-djinn: #4a90e2;
    --green-djinn: #52c41a;
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */

.djinns-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================================
   HEADER
   ================================ */

.djinns-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.djinns-logo {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 170, 0.3));
}

.djinns-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 12px 0;
    text-shadow: 0 2px 10px rgba(0, 255, 170, 0.2);
}

.djinns-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ================================
   INFO BOX
   ================================ */

.info-box {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.1) 0%, rgba(0, 255, 170, 0.05) 100%);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.5));
}

.info-text {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.info-text strong {
    color: var(--accent-cyan);
}

/* ================================
   DJINN SECTION
   ================================ */

.djinn-section {
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    overflow: hidden;
}

.djinn-header {
    padding: 24px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(74, 144, 226, 0.05) 100%);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.djinn-header.green {
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.15) 0%, rgba(82, 196, 26, 0.05) 100%);
}

.djinn-sprite {
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
}

.djinn-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.djinn-name.blue {
    color: var(--blue-djinn);
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

.djinn-name.green {
    color: var(--green-djinn);
    text-shadow: 0 0 20px rgba(82, 196, 26, 0.4);
}

.djinn-location {
    width: 75px;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* ================================
   TABLES
   ================================ */

.djinn-content {
    padding: 24px;
}

.trade-section {
    margin-bottom: 30px;
}

.trade-section:last-child {
    margin-bottom: 0;
}

.trade-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin: 0 0 16px 0;
    text-align: center;
}

.items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--primary-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.items-table thead tr {
    background: linear-gradient(135deg, #1a2332 0%, #141c28 100%);
}

.items-table thead th {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

.items-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.items-table tbody tr:last-child {
    border-bottom: none;
}

.items-table tbody tr:hover {
    background: rgba(0, 255, 170, 0.05);
    transform: scale(1.005);
}

.items-table tbody td {
    padding: 12px 16px;
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

.item-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.item-name {
    font-weight: 600;
    color: var(--text-light);
}

.item-price {
    color: var(--warning-yellow);
    font-weight: 600;
    white-space: nowrap;
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.4s ease-out;
}

.djinn-section {
    animation: fadeInScale 0.5s ease-out;
}

.djinn-section:nth-child(2) {
    animation-delay: 0.1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.djinn-section:nth-child(3) {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media screen and (max-width: 1024px) {
    .djinns-container {
        padding: 16px;
    }
    
    .djinns-header {
        padding: 30px 16px;
    }
    
    .djinns-title {
        font-size: 30px;
    }
    
    .djinn-name {
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
    .djinns-title {
        font-size: 26px;
    }
    
    .djinns-subtitle {
        font-size: 14px;
    }
    
    .djinn-header {
        padding: 20px 16px;
    }
    
    .djinn-name {
        font-size: 20px;
    }
    
    .djinn-content {
        padding: 16px;
    }
    
    .items-table {
        font-size: 13px;
    }
    
    .items-table thead th {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .items-table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .trade-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .djinns-container {
        padding: 12px;
    }
    
    .djinns-header {
        padding: 24px 12px;
    }
    
    .djinns-logo {
        font-size: 48px;
    }
    
    .djinns-title {
        font-size: 22px;
    }
    
    .djinns-subtitle {
        font-size: 13px;
    }
    
    .info-box {
        padding: 16px;
        gap: 12px;
    }
    
    .info-icon {
        font-size: 20px;
    }
    
    .info-text {
        font-size: 14px;
    }
    
    .djinn-header {
        padding: 16px 12px;
        gap: 12px;
    }
    
    .djinn-sprite {
        max-width: 64px;
    }
    
    .djinn-name {
        font-size: 18px;
    }
    
    .djinn-location {
        max-width: 100%;
    }
    
    .djinn-content {
        padding: 12px;
    }
    
    .trade-section {
        margin-bottom: 20px;
    }
    
    .trade-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .items-table {
        font-size: 12px;
    }
    
    .items-table thead th {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .items-table tbody td {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    /* Stack table on very small screens */
    .items-table thead th:first-child,
    .items-table tbody td:first-child {
        display: none;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* ================================
   MODAL FOR LOCATION IMAGES
   ================================ */

.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* ================================
   NAVIGATION CARDS
   ================================ */

.djinn-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.djinn-nav-card {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.djinn-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.djinn-nav-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 170, 0.3);
}

.djinn-nav-card:hover::before {
    opacity: 1;
}

.djinn-card-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.djinn-nav-card:hover .djinn-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.djinn-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 12px 0;
}

.djinn-card-description {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.6;
}
