/* How It Works Page Styles */

.how-it-works-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(42, 42, 62, 0.92)),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255, 107, 53, 0.03) 50px, rgba(255, 107, 53, 0.03) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255, 107, 53, 0.03) 50px, rgba(255, 107, 53, 0.03) 51px),
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
        var(--gunmetal);
    background-size: auto, 50px 50px, 50px 50px, 500px 500px, 500px 500px, auto;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.how-it-works-view.hidden {
    display: none;
}

.how-it-works-container {
    max-width: 800px;
    margin: 40px auto 20px;
    padding-bottom: 20px;
    position: relative;
}

/* Floating Decorative Icons */
.hiw-floating-icon {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
}

.hiw-float-guitar {
    width: 120px;
    height: 120px;
    top: 50px;
    left: -60px;
    transform: rotate(-20deg);
    animation: floatSlow 8s ease-in-out infinite;
}

.hiw-float-skull {
    width: 80px;
    height: 80px;
    top: 350px;
    right: -40px;
    transform: rotate(15deg);
    animation: floatSlow 6s ease-in-out infinite 1s;
}

.hiw-float-pick {
    width: 60px;
    height: 60px;
    top: 700px;
    left: -30px;
    transform: rotate(25deg);
    animation: floatSlow 7s ease-in-out infinite 0.5s;
}

.hiw-float-storm {
    width: 100px;
    height: 100px;
    top: 1100px;
    right: -50px;
    transform: rotate(-10deg);
    animation: floatSlow 9s ease-in-out infinite 2s;
}

.hiw-float-horns {
    width: 90px;
    height: 90px;
    top: 1500px;
    left: -45px;
    transform: rotate(-15deg);
    animation: floatSlow 7s ease-in-out infinite 1.5s;
}

.hiw-float-pirate {
    width: 100px;
    height: 100px;
    top: 1900px;
    right: -50px;
    transform: rotate(20deg);
    animation: floatSlow 8s ease-in-out infinite 0.8s;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(var(--rot, 0deg));
    }
    50% {
        transform: translateY(-15px) rotate(var(--rot, 0deg));
    }
}

/* Ensure content is above floating icons */
.how-it-works-hero,
.hiw-section,
.hiw-footer {
    position: relative;
    z-index: 1;
}

/* Section-inline decorative icons */
.hiw-section-decor {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0.2;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
    transition: opacity 0.3s ease;
}

.hiw-section:hover .hiw-section-decor {
    opacity: 0.35;
}

.hiw-decor-right {
    top: 10px;
    right: 15px;
    transform: rotate(15deg);
}

.hiw-decor-left {
    top: 10px;
    left: 15px;
    transform: rotate(-15deg);
}

.hiw-decor-right-bottom {
    bottom: 15px;
    right: 15px;
    transform: rotate(10deg);
}

.hiw-decor-large {
    width: 70px;
    height: 70px;
    opacity: 0.25;
}

.hiw-section:hover .hiw-decor-large {
    opacity: 0.4;
}

/* Hero Section */
.how-it-works-hero {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(26, 26, 46, 0.3));
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.hiw-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hiw-title {
    font-family: 'Rubik Mono One', monospace;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hiw-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.hiw-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
}

/* Sections */
.hiw-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.hiw-section:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.hiw-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.hiw-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.hiw-section-header h2 {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin: 0;
}

.hiw-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
}

.hiw-text strong {
    color: var(--flame-red);
    font-weight: 600;
}

/* Cards */
.hiw-card {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.hiw-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 10px 0;
    padding-left: 10px;
    border-left: 3px solid var(--flame-red);
}

.hiw-card strong {
    color: white;
}

/* Mode Cards */
.hiw-mode {
    text-align: center;
    padding: 20px;
}

.hiw-mode:first-child {
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.hiw-mode-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.hiw-mode h3 {
    font-size: 1.4rem;
    color: var(--flame-red);
    margin-bottom: 10px;
}

.hiw-mode p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    border: none;
    padding: 0;
}

/* Lists */
.hiw-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.hiw-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
}

.hiw-list li:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
}

.hiw-bullet {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hiw-list strong {
    color: white;
}

/* Stats Grid */
.hiw-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.hiw-stat-item {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.hiw-stat-item:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.05);
}

.hiw-stat-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.hiw-stat-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

.hiw-stat-item strong {
    color: white;
    display: block;
    margin-bottom: 5px;
}

/* Future Features Section */
.hiw-future {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(255, 68, 68, 0.1));
    border: 2px solid rgba(147, 51, 234, 0.5);
    position: relative;
    overflow: hidden;
}

.hiw-future::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(147, 51, 234, 0.15), transparent);
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hiw-text-future {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Patch Collection Section Special Styling */
.hiw-section ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.hiw-section ul li {
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* Footer */
.hiw-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
}

.hiw-footer p {
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .how-it-works-container {
        margin: 40px auto 20px;
    }

    .hiw-title {
        font-size: 2rem;
    }

    .hiw-tagline {
        font-size: 1rem;
    }

    .hiw-section {
        padding: 20px;
    }

    .hiw-section-header h2 {
        font-size: 1.4rem;
    }

    .hiw-icon {
        font-size: 2rem;
    }

    .hiw-text {
        font-size: 1rem;
    }

    .hiw-stats {
        grid-template-columns: 1fr;
    }

    /* Hide floating icons on tablet */
    .hiw-floating-icon {
        display: none;
    }

    /* Make section decor smaller */
    .hiw-section-decor {
        width: 35px;
        height: 35px;
        opacity: 0.15;
    }

    .hiw-decor-large {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hiw-title {
        font-size: 1.6rem;
    }

    .hiw-logo {
        width: 70px;
        height: 70px;
    }

    .hiw-section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Even smaller section decor on mobile */
    .hiw-section-decor {
        width: 28px;
        height: 28px;
        top: 8px;
    }

    .hiw-decor-large {
        width: 35px;
        height: 35px;
    }

    .hiw-decor-right-bottom {
        bottom: 10px;
        right: 10px;
    }
}
