/* ===========================================
   Pages: Info Sections, 404, API
   =========================================== */

/* Info Sections (How It Works, Features, FAQ) */
.info-section {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.info-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

/* Steps Grid (How It Works) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step-card {
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Features List */
.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.features-list li:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.features-list li::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 0.7rem;
    color: white;
    flex-shrink: 0;
}

/* FAQ Section */
.faq-section {
    margin-top: 32px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 16px 20px;
    background: transparent;
    cursor: default;
}

.faq-answer {
    padding: 0 20px 16px;
}

.faq-answer p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================================
   Autocomplete Dropdown
   =========================================== */

.ac-wrapper {
    position: relative;
}

.ac-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.ac-item:hover,
.ac-item.ac-active {
    background: var(--bg-card-hover);
}

.ac-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.ac-img--empty {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.ac-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ac-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-extra {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================================
   Similar Artists Results
   =========================================== */

.sa-results__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.sa-results__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.artist-result {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.artist-result:hover {
    border-color: var(--border-hover);
}

.artist-result--simple:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.artist-result__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.artist-result__cover {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.artist-result--simple .artist-result__cover {
    width: 48px;
    height: 48px;
}

.artist-result__cover--empty {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.artist-result__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.artist-result--simple .artist-result__name {
    font-size: 0.95rem;
}

.artist-result__tracks {
    padding: 0 16px 16px;
}

.artist-result__tracks-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.artist-result__tracks-loader {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 0;
}

.sa-track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
}

.sa-track:first-of-type {
    border-top: none;
}

.sa-track__cover {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.sa-track__cover--empty {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.sa-track__info {
    flex: 1;
    min-width: 0;
}

.sa-track__title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-track__artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-track__platforms {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* ===========================================
   404 Error Page
   =========================================== */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.error-content {
    max-width: 500px;
}

.error-vinyl {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
    cursor: pointer;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        #1a1a24 0deg,
        #2a2a3a 30deg,
        #1a1a24 60deg,
        #2a2a3a 90deg,
        #1a1a24 120deg,
        #2a2a3a 150deg,
        #1a1a24 180deg,
        #2a2a3a 210deg,
        #1a1a24 240deg,
        #2a2a3a 270deg,
        #1a1a24 300deg,
        #2a2a3a 330deg,
        #1a1a24 360deg
    );
    border-radius: 50%;
    position: relative;
    animation: vinyl-spin 8s linear infinite;
    animation-play-state: paused;
    box-shadow:
        0 0 0 3px #333,
        0 0 40px rgba(99, 102, 241, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.vinyl-disc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.vinyl-disc::after {
    content: '404';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vinyl-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border-radius: 50%;
    z-index: 2;
}

.vinyl-crack {
    position: absolute;
    top: 15%;
    left: 50%;
    width: 3px;
    height: 35%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(239, 68, 68, 0.8),
        transparent
    );
    transform: rotate(15deg);
    filter: blur(1px);
}

.error-vinyl:hover .vinyl-disc,
.error-vinyl.playing .vinyl-disc {
    animation-play-state: running;
}

@keyframes vinyl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error-code {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.error-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.error-page .error-message {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    background: none;
    border: none;
    padding: 0;
}

.error-page .error-message::before {
    display: none;
}

.error-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 24px;
    opacity: 0.7;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.secret-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.secret-message.visible {
    opacity: 1;
}

/* ===========================================
   API Access Page
   =========================================== */

.api-page {
    max-width: 800px;
    margin: 0 auto;
}

.api-form {
    max-width: 540px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-of-type {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-normal), background var(--transition-normal);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.turnstile-wrapper {
    margin-bottom: 24px;
}

.btn-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success message */
.api-success {
    text-align: center;
    padding: 40px 32px;
}

.api-success .success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.api-success .success-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.api-success h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.api-success p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================================
   Genre Finder
   =========================================== */

.gf-mode-toggle {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.gf-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gf-mode-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.gf-mode-btn--active {
    color: white;
    background: var(--accent-gradient);
    border-color: transparent;
}

.gf-mode-btn svg {
    width: 16px;
    height: 16px;
}

.gf-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    animation: trackAppear 0.3s ease-out;
}

.gf-result-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.gf-result-card__cover {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    overflow: hidden;
}

.gf-result-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gf-result-card__cover--round {
    border-radius: 50%;
}

.gf-result-card__cover--empty {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.gf-result-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.gf-result-card__artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.gf-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.gf-genres__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.genre-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 100px;
    transition: all var(--transition-fast);
    cursor: default;
}

.genre-badge:hover {
    transform: translateY(-1px);
}

.genre-badge:nth-child(6n+1) { background: rgba(99, 102, 241, 0.15); color: #a78bfa; border: 1px solid rgba(99, 102, 241, 0.25); }
.genre-badge:nth-child(6n+2) { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.25); }
.genre-badge:nth-child(6n+3) { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.genre-badge:nth-child(6n+4) { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.genre-badge:nth-child(6n+5) { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.genre-badge:nth-child(6n+6) { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }

.gf-platforms {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.gf-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gf-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    white-space: nowrap;
}

.gf-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.gf-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.search-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 8px 0 0;
}

/* ===========================================
   Pricing Page
   =========================================== */

.pricing-page .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    align-items: stretch;
}

.pricing-grid--two {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card--featured {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 40%);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.pricing-card--featured:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.25);
}

.pricing-card__badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    min-height: 20px;
    margin-bottom: 8px;
}

.pricing-card__badge:empty {
    visibility: hidden;
}

.pricing-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-card__price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-card__amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.pricing-card__period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-card__yearly {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: -16px 0 22px;
    min-height: 22px;
    line-height: 1.4;
}

.pricing-card__yearly strong {
    color: var(--accent-primary);
    font-weight: 700;
}

.pricing-card__yearly--placeholder {
    visibility: hidden;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
    flex: 1;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-card__features li:last-child {
    border-bottom: none;
}

.pricing-card__features li::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 0.65rem;
    color: white;
    flex-shrink: 0;
}

.btn-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-plan--free {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.btn-plan--free:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.btn-plan--pro {
    color: white;
    background: var(--accent-gradient);
    box-shadow: var(--shadow-sm);
}

.btn-plan--pro:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-plan--ultimate {
    color: white;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    box-shadow: var(--shadow-sm);
}

.btn-plan--ultimate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(139, 92, 246, 0.3);
}

.pricing-info {
    text-align: center;
    margin-top: 28px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.pricing-info a {
    color: var(--accent-primary);
    text-decoration: none;
}

.pricing-info a:hover {
    text-decoration: underline;
}

/* Subscription block (profile) — MS02-006 */
.profile-subscription { padding: 18px; border: 1px solid var(--border-color, rgba(255,255,255,.1)); border-radius: 12px; }
.profile-subscription--pro { border-color: var(--accent-primary, #7c3aed); background: rgba(124,58,237,.06); }
.profile-subscription__badge { display:inline-block; padding:3px 10px; border-radius:6px; font-weight:600; font-size:.8rem; background:var(--accent-primary,#7c3aed); color:#fff; margin-bottom:10px; }
.profile-subscription__badge--free { background: var(--text-muted, #888); }
.profile-subscription__text { margin: 0 0 10px; }
.profile-subscription__meta { font-size:.9rem; color: var(--text-muted, #888); margin: 0 0 12px; }

/* Pro welcome banner (profile) — MS02 */
.profile-welcome { padding:14px 18px; margin-bottom:16px; border-radius:12px; background:rgba(124,58,237,.12); border:1px solid var(--accent-primary,#7c3aed); font-weight:500; }
