/* ========================================
   GAQ CARDS - Card Specific Styles
   Additional component styles
   ======================================== */

/* ========================================
   About Grid
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: rgba(26, 18, 41, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(124, 58, 237, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-5px);
    box-shadow: var(--shadow-purple);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--gradient-card);
    color: var(--primary-purple);
    position: relative;
}

.about-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
    opacity: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.about-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Steps Container (How It Works)
   ======================================== */

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

/* Connecting line between steps */
.steps-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 29px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--primary-purple) 15%, var(--deep-purple) 85%, transparent 100%);
    border-radius: 2px;
}

.step {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    position: relative;
    padding: 2rem;
    margin-left: 80px;
    
    /* Glass Card Style */
    background: rgba(26, 18, 41, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(26, 18, 41, 0.6);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(124, 58, 237, 0.2);
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    
    /* Absolute positioning relative to the step card */
    position: absolute;
    left: -90px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border: 4px solid var(--bg-dark);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: translateY(-50%) scale(1.1) rotate(10deg);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.8);
}

.step-content {
    flex: 1;
    padding-top: 0;
}

.step-content h3 {
    color: var(--light-purple);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(26, 18, 41, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--primary-purple);
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-question i {
    color: var(--primary-purple);
    font-size: 1.3rem;
}

.faq-question:hover {
    color: var(--primary-purple);
}

.faq-answer {
    padding: 0 2rem 1.5rem 4.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
    display: block;
}

/* FAQ Grid Layout (Side by Side) */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.faq-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-card);
    height: 100%;
    min-height: 400px;
}

.faq-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.faq-image-wrapper:hover img {
    transform: scale(1.03);
}

/* Optional: Add toggle functionality with JavaScript */
.faq-item:not(.active) .faq-answer {
    display: block;
}

/* ========================================
   NFT Card Display (for dashboard/gallery)
   ======================================== */

.nft-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.nft-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(124, 58, 237, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.nft-card:hover::before {
    left: 100%;
}

.nft-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-purple);
}

.nft-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.nft-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.nft-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.nft-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nft-card-type {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.nft-card-type.redeemable {
    background: var(--gradient-primary);
    color: white;
}

.nft-card-type.utility {
    background: linear-gradient(135deg, var(--cyber-blue), var(--primary-purple));
    color: white;
}

/* ========================================
   Holographic Effect (Premium Cards)
   ======================================== */

.holographic {
    position: relative;
    overflow: hidden;
}

.holographic::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: holographicShine 3s linear infinite;
    pointer-events: none;
}

@keyframes holographicShine {
    0% {
        transform: rotate(45deg) translate(-100%, -100%);
    }
    100% {
        transform: rotate(45deg) translate(100%, 100%);
    }
}

/* ========================================
   Badge/Tag System
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-legendary {
    background: var(--gradient-gold);
    color: var(--bg-dark);
}

.badge-epic {
    background: linear-gradient(135deg, var(--neon-pink), var(--primary-purple));
    color: white;
}

.badge-rare {
    background: linear-gradient(135deg, var(--cyber-blue), var(--primary-purple));
    color: white;
}

.badge-common {
    background: var(--gradient-primary);
    color: white;
}

.badge-utility {
    background: rgba(124, 58, 237, 0.2);
    color: var(--light-purple);
    border: 1px solid var(--primary-purple);
}

/* ========================================
   Card Showcase Grid
   ======================================== */

.card-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.showcase-card {
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card-info {
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 10, 31, 0.95) 30%, rgba(15, 10, 31, 0.98) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.showcase-card:hover .card-info {
    bottom: 0;
    opacity: 1;
}

.card-info-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-info-rarity {
    color: var(--light-purple);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-card:hover::before {
    opacity: 1;
}

.showcase-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4);
}

.showcase-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    position: relative;
    z-index: 1;
}

/* ========================================
   Loading States
   ======================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        var(--bg-elevated) 50%,
        var(--bg-card) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(124, 58, 237, 0.2);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Burned/Redeemed Card States
   ======================================== */

/* Grayscale filter for burned cards */
.nft-card.burned .nft-image,
.nft-card.redeemed .nft-image {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.nft-card.burned:hover .nft-image,
.nft-card.redeemed:hover .nft-image {
    opacity: 0.7;
}

/* Burned card overlay */
.nft-card.burned::after,
.nft-card.redeemed::after {
    content: '🔥 REDEEMED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ef4444;
    text-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
    z-index: 10;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid #ef4444;
}

/* Burned card badge */
.badge-burned {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* ========================================
   Pending Redemption State
   ======================================== */

/* Pending redemption state - partial grayscale */
.nft-card.pending .nft-image {
    filter: grayscale(50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nft-card.pending:hover .nft-image {
    opacity: 0.85;
}

/* Pending redemption overlay */
.nft-card.pending::after {
    content: '⏳ PENDING REVIEW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
    z-index: 10;
    pointer-events: none;
    background: rgba(251, 191, 36, 0.7);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid #fbbf24;
}

/* ========================================
   Status Badge Styles
   ======================================== */

/* Pending badge - yellow/orange theme */
.badge-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Redeemed/Paid badge - green theme */
.badge-redeemed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Button State Styles
   ======================================== */

/* Pending button - yellow/orange theme */
.btn-pending {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid #fbbf24 !important;
    cursor: not-allowed;
    opacity: 0.9;
}

.btn-pending:hover {
    background: rgba(251, 191, 36, 0.25) !important;
}

/* Success button - green theme */
.btn-success {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border: 1px solid #22c55e !important;
    cursor: not-allowed;
    opacity: 0.9;
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.25) !important;
}
