/* Community Decks Application Styles */

/* Page Header */
.page-header {
    text-align: center;
    margin: 20px 0 40px 0;
    padding: 30px 20px;
    background: rgba(255,255,255,0.04);
    border: 3px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Breadcrumb */
.breadcrumb {
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

.breadcrumb a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Filters and Controls */
.controls-section {
    background: rgba(255,255,255,0.04);
    border: 3px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.controls-title {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.deck-count {
    color: #4a90e2;
    font-weight: 600;
    font-size: 1rem;
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.search-box {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
    background: rgba(255,255,255,0.08);
}

.search-box::placeholder {
    color: rgba(255,255,255,0.5);
}

.filter-dropdown {
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

.filter-dropdown option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.sort-dropdown {
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

.sort-dropdown option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* Aura Filter Chips */
.aura-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.aura-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.aura-chip:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.aura-chip.active {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.aura-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* Deck Grid */
.decks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.deck-card {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.deck-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.deck-caster-preview {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: contain;
    margin-bottom: 12px;
}

.deck-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.deck-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    max-width: 180px;
    word-wrap: break-word;
}

.deck-votes {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #4a90e2;
    font-weight: 600;
    flex-shrink: 0;
}

.vote-icon {
    font-size: 16px;
}

.deck-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.deck-author {
    font-weight: 600;
    color: #4a90e2;
}

.deck-date {
    color: rgba(255,255,255,0.5);
}

.deck-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.deck-caster {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.deck-auras {
    display: flex;
    gap: 6px;
}

.deck-aura-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Removed duplicate deck-stats section */

/* Deck Detail View */
.deck-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.deck-detail-header {
    background: rgba(255,255,255,0.04);
    border: 3px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.deck-detail-title {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.deck-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.deck-detail-author {
    font-size: 1.1rem;
    color: #4a90e2;
    font-weight: 600;
}

.deck-detail-date {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.deck-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.deck-info-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.deck-info-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
    font-weight: 600;
}

.deck-info-value {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

/* Voting Section */
.voting-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.vote-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.vote-button:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.vote-button.upvote.active {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    color: #28a745;
}

.vote-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Deck Builder Button - Higher specificity to override global anchor styles */
.deck-detail-actions .deck-builder-button,
a.deck-builder-button {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid rgba(23, 162, 184, 0.3) !important;
    border-radius: 12px;
    background: rgba(23, 162, 184, 0.1) !important;
    color: #17a2b8 !important;
    font-size: 16px;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.deck-detail-actions .deck-builder-button:hover,
a.deck-builder-button:hover {
    background: rgba(23, 162, 184, 0.2) !important;
    border-color: rgba(23, 162, 184, 0.5) !important;
    transform: translateY(-2px);
    color: #17a2b8 !important;
    text-decoration: none !important;
}

.deck-detail-actions .deck-builder-button:active,
a.deck-builder-button:active {
    transform: translateY(0);
}

/* Deck Cards Display */
.deck-cards-section {
    background: rgba(255,255,255,0.04);
    border: 3px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.deck-cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.deck-cards-title {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.deck-export-btn {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.deck-export-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.deck-sections {
    display: grid;
    gap: 25px;
}

.deck-section {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.deck-section-title {
    font-size: 1.2rem;
    color: #4a90e2;
    margin: 0 0 15px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-count {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.deck-cards-list {
    display: grid;
    gap: 8px;
}

.deck-card-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 12px;
    position: relative;
}

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

.deck-card-aura {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.deck-card-name {
    flex: 1;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.deck-card-name:hover {
    color: #4a90e2;
    text-decoration: underline;
}

/* Card hover preview image */
.card-hover-image {
    position: fixed !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    margin: 0 !important;
    inset: auto !important;
}

.deck-card-item:hover .card-hover-image {
    opacity: 1;
    visibility: visible;
}

.deck-card-quantity {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination-btn {
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
    color: #4a90e2;
}

.pagination-info {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 0 15px;
}

/* Card Modal (reuse existing styles) */
.card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.card-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.card-modal.active .card-modal-content {
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.card-modal-image {
    max-width: 400px;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255,255,255,0.6);
}

.empty-state h3 {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 15px 0;
}

.empty-state p {
    font-size: 1rem;
    margin: 0 0 20px 0;
    max-width: 400px;
    margin: 0 auto 20px auto;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .controls-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .aura-filters {
        justify-content: center;
    }
    
    .decks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .deck-detail-header {
        padding: 20px;
    }
    
    .deck-detail-title {
        font-size: 1.5rem;
    }
    
    .deck-detail-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .deck-cards-section {
        padding: 20px;
    }
    
    .deck-cards-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .voting-section {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .vote-button,
    .deck-builder-button,
    a.deck-builder-button,
    .deck-detail-actions .deck-builder-button {
        width: 100% !important;
        max-width: 200px;
        justify-content: center;
    }
    
    .card-modal-image {
        max-width: 350px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Disable hover images on mobile */
    .card-hover-image {
        display: none !important;
    }
    
    /* Hide print button on mobile */
    .deck-export-btn {
        display: none !important;
    }
}

@media (max-width: 968px) {
    .card-hover-image {
        width: 250px;
    }
}

/* AURA-THEMED VISUAL ENHANCEMENTS - START (Easy to remove if needed) */

/* Aura-specific color schemes */
:root {
    --aura-air: #64b5f6;
    --aura-air-glow: rgba(100, 181, 246, 0.3);
    --aura-air-bg: linear-gradient(135deg, rgba(100, 181, 246, 0.1), rgba(100, 181, 246, 0.05));
    
    --aura-earth: #217907;
    --aura-earth-glow: rgba(33, 121, 7, 0.3);
    --aura-earth-bg: linear-gradient(135deg, rgba(33, 121, 7, 0.1), rgba(33, 121, 7, 0.05));
    
    --aura-fire: #ff6b6b;
    --aura-fire-glow: rgba(255, 107, 107, 0.3);
    --aura-fire-bg: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    
    --aura-lightning: #ffb74d;
    --aura-lightning-glow: rgba(255, 183, 77, 0.3);
    --aura-lightning-bg: linear-gradient(135deg, rgba(255, 183, 77, 0.1), rgba(255, 183, 77, 0.05));
    
    --aura-water: #4488cc;
    --aura-water-glow: rgba(68, 136, 204, 0.3);
    --aura-water-bg: linear-gradient(135deg, rgba(68, 136, 204, 0.1), rgba(68, 136, 204, 0.05));
}

/* Aura-enhanced deck detail header */
.deck-detail-header[data-aura] {
    position: relative;
    overflow: hidden;
}

.deck-detail-header[data-aura]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.6;
    z-index: -1;
    border-radius: inherit;
}

/* Air aura styling */
.deck-detail-header[data-aura="air"]::before {
    background: var(--aura-air-bg);
    box-shadow: inset 0 0 50px var(--aura-air-glow);
}

.deck-detail-header[data-aura="air"] {
    border: 3px solid var(--aura-air);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--aura-air-glow);
}

/* Earth aura styling */
.deck-detail-header[data-aura="earth"]::before {
    background: var(--aura-earth-bg);
    box-shadow: inset 0 0 50px var(--aura-earth-glow);
}

.deck-detail-header[data-aura="earth"] {
    border: 3px solid var(--aura-earth);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--aura-earth-glow);
}

/* Fire aura styling */
.deck-detail-header[data-aura="fire"]::before {
    background: var(--aura-fire-bg);
    box-shadow: inset 0 0 50px var(--aura-fire-glow);
}

.deck-detail-header[data-aura="fire"] {
    border: 3px solid var(--aura-fire);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--aura-fire-glow);
}

/* Lightning aura styling */
.deck-detail-header[data-aura="lightning"]::before {
    background: var(--aura-lightning-bg);
    box-shadow: inset 0 0 50px var(--aura-lightning-glow);
}

.deck-detail-header[data-aura="lightning"] {
    border: 3px solid var(--aura-lightning);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--aura-lightning-glow);
}

/* Water aura styling */
.deck-detail-header[data-aura="water"]::before {
    background: var(--aura-water-bg);
    box-shadow: inset 0 0 50px var(--aura-water-glow);
}

.deck-detail-header[data-aura="water"] {
    border: 3px solid var(--aura-water);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--aura-water-glow);
}

/* Dual aura combinations */
.deck-detail-header[data-aura="air-earth"] {
    border: 3px solid #42a077;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(66, 160, 119, 0.4);
}

.deck-detail-header[data-aura="air-earth"]::before {
    background: linear-gradient(135deg, var(--aura-air-bg), var(--aura-earth-bg));
    box-shadow: inset 0 0 50px rgba(100, 181, 246, 0.2), inset 0 0 50px rgba(33, 121, 7, 0.2);
}

.deck-detail-header[data-aura="air-fire"] {
    border: 3px solid #ff8a80;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 138, 128, 0.4);
}

.deck-detail-header[data-aura="air-fire"]::before {
    background: linear-gradient(135deg, var(--aura-air-bg), var(--aura-fire-bg));
    box-shadow: inset 0 0 50px rgba(100, 181, 246, 0.2), inset 0 0 50px rgba(255, 107, 107, 0.2);
}

.deck-detail-header[data-aura="air-lightning"] {
    border: 3px solid #ffcc80;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 204, 128, 0.4);
}

.deck-detail-header[data-aura="air-lightning"]::before {
    background: linear-gradient(135deg, var(--aura-air-bg), var(--aura-lightning-bg));
    box-shadow: inset 0 0 50px rgba(100, 181, 246, 0.2), inset 0 0 50px rgba(255, 183, 77, 0.2);
}

.deck-detail-header[data-aura="earth-fire"] {
    border: 3px solid #77b537;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(119, 181, 55, 0.4);
}

.deck-detail-header[data-aura="earth-fire"]::before {
    background: linear-gradient(135deg, var(--aura-earth-bg), var(--aura-fire-bg));
    box-shadow: inset 0 0 50px rgba(33, 121, 7, 0.2), inset 0 0 50px rgba(255, 107, 107, 0.2);
}

.deck-detail-header[data-aura="earth-lightning"] {
    border: 3px solid #8fb92b;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(143, 185, 43, 0.4);
}

.deck-detail-header[data-aura="earth-lightning"]::before {
    background: linear-gradient(135deg, var(--aura-earth-bg), var(--aura-lightning-bg));
    box-shadow: inset 0 0 50px rgba(33, 121, 7, 0.2), inset 0 0 50px rgba(255, 183, 77, 0.2);
}

.deck-detail-header[data-aura="fire-lightning"] {
    border: 3px solid #ff9f43;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 159, 67, 0.4);
}

.deck-detail-header[data-aura="fire-lightning"]::before {
    background: linear-gradient(135deg, var(--aura-fire-bg), var(--aura-lightning-bg));
    box-shadow: inset 0 0 50px rgba(255, 107, 107, 0.2), inset 0 0 50px rgba(255, 183, 77, 0.2);
}

/* Mixed aura styling (3+ auras) */
.deck-detail-header[data-aura="mixed"] {
    border: 3px solid #6a4c93;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(106, 76, 147, 0.3);
}

.deck-detail-header[data-aura="mixed"]::before {
    background: linear-gradient(135deg, 
        var(--aura-air-glow), 
        var(--aura-earth-glow), 
        var(--aura-fire-glow), 
        var(--aura-lightning-glow)
    );
    animation: auraShift 4s ease-in-out infinite;
}

/* Aura info item enhancements */
.deck-info-item[data-aura-type] {
    position: relative;
    overflow: hidden;
}

.deck-info-item[data-aura-type="air"] {
    border-color: var(--aura-air);
    box-shadow: 0 2px 10px var(--aura-air-glow);
}

.deck-info-item[data-aura-type="earth"] {
    border-color: var(--aura-earth);
    box-shadow: 0 2px 10px var(--aura-earth-glow);
}

.deck-info-item[data-aura-type="fire"] {
    border-color: var(--aura-fire);
    box-shadow: 0 2px 10px var(--aura-fire-glow);
}

.deck-info-item[data-aura-type="lightning"] {
    border-color: var(--aura-lightning);
    box-shadow: 0 2px 10px var(--aura-lightning-glow);
}

.deck-info-item[data-aura-type="water"] {
    border-color: var(--aura-water);
    box-shadow: 0 2px 10px var(--aura-water-glow);
}

/* Subtle animation for mixed auras */
@keyframes auraShift {
    0%, 100% { opacity: 0.3; }
    25% { opacity: 0.5; }
    50% { opacity: 0.4; }
    75% { opacity: 0.6; }
}

/* AURA-THEMED VISUAL ENHANCEMENTS - END */

/* CARD ART INTEGRATION - START (Easy to remove if needed) */

/* Caster background image in header */
.deck-detail-header[data-caster-image] {
    position: relative;
}

.deck-detail-header[data-caster-image]::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 200px;
    background-image: attr(data-caster-image url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* Alternative approach using CSS custom properties */
.deck-detail-header.has-caster-bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 200px;
    background-image: var(--caster-image);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    filter: blur(1px);
}

/* Ensure text content stays above the background */
.deck-detail-header .deck-detail-title,
.deck-detail-header .deck-detail-meta,
.deck-detail-header .deck-detail-info {
    position: relative;
    z-index: 1;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .deck-detail-header.has-caster-bg::after {
        width: 120px;
        opacity: 0.1;
    }
}

/* CARD ART INTEGRATION - END */

/* Print Styles */
@media print {
    .header, .mobile-header, .controls-section, .voting-section, .pagination {
        display: none !important;
    }
    
    .deck-cards-section {
        background: white !important;
        color: black !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    
    .deck-section {
        background: #f5f5f5 !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
    
    .deck-section-title {
        color: black !important;
    }
    
    .deck-card-name {
        color: black !important;
    }
    
    .deck-card-quantity {
        color: black !important;
    }
}

/* New Aura Display Styles */
.deck-auras-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.deck-auras-display .deck-info-value {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.aura-display-section {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.aura-display-section.allied {
    background: rgba(74,144,226,0.15);
    border-color: rgba(74,144,226,0.3);
}

.aura-display-section .deck-aura-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.aura-display-section .aura-label {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}

.aura-display-section .allied-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    font-weight: 500;
    margin-right: 2px;
}

.no-aura {
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

/* Compact Aura Display for Individual Deck Pages */
.compact-aura-display {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
}

.compact-aura-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.compact-aura-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.compact-aura-label {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .compact-aura-display {
        gap: 15px;
        margin-left: 15px;
    }
    
    .compact-aura-icon {
        width: 28px;
        height: 28px;
    }
    
    .compact-aura-label {
        font-size: 9px;
    }
}