/* ========================================
   App Pages Styles
   ======================================== */

/* App Hero Section */
.app-hero {
    padding: 100px 0 60px;
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.musicrpc-hero {
    background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
    background-color: #2F2D35;
    color: #F9F8FD;
}

.musicrpc-hero .app-hero-appname {
    color: rgba(249, 248, 253, 0.9);
    border-color: rgba(249, 248, 253, 0.2);
}

.paleta-hero {
    background-color: #1C1C1E !important;
    background: #1C1C1E !important;
    color: #FFFFFF;
}

.paleta-hero .container {
    background: transparent !important;
}

.paleta-hero .app-hero-content,
.paleta-hero .app-hero-text {
    background: transparent !important;
}

.transfigurator-hero {
    background: linear-gradient(135deg, #AACCEE 0%, #BBCCEE 50%, #DDDDEE 100%);
    color: #1D1D1F;
}

.transfigurator-hero .container {
    background: transparent !important;
}

.transfigurator-hero .app-hero-content,
.transfigurator-hero .app-hero-text {
    background: transparent !important;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-icon {
    font-size: 1.5rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.feature-list li {
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.app-hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

@media (max-width: 968px) {
    .app-hero-content {
        flex-direction: column;
        text-align: center;
    }
}

.app-hero-text {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-fast);
}

.app-hero-icon:hover {
    transform: translateY(-4px);
}

.app-hero-appname {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.app-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.app-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.app-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.app-hero-buttons .app-store-badge {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.app-hero-buttons .app-store-badge:hover {
    transform: scale(1.05);
}

.app-hero-buttons .app-store-image {
    width: 160px;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3);
}

/* Black button for Audioscrobbler */
.btn-black {
    background: #1D1D1F;
    color: white;
    border: 2px solid #1D1D1F;
}

.btn-black:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* App Mockup */
.app-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup {
    perspective: 1000px;
}

.mockup-screen {
    width: 350px;
    height: 280px;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.mockup-screen:hover {
    transform: rotateY(-5deg) rotateX(2deg);
}

.mockup-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    flex: 1;
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.album-art-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    position: relative;
    transform: rotate(-15deg);
}

.album-art-image::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 30px;
    height: 30px;
    background: #fbbf24;
    border-radius: 50%;
    opacity: 0.8;
}

.album-art-image::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 15%;
    width: 20px;
    height: 20px;
    background: #f59e0b;
    border-radius: 50%;
    opacity: 0.6;
}

.track-details {
    flex: 1;
}

.track-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.artist-name {
    color: #dc2626;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.album-name {
    color: #dc2626;
    font-size: 0.85rem;
    opacity: 0.8;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
}

.time-current,
.time-total {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 35px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    width: 15%;
    height: 100%;
    background: #dc2626;
    border-radius: 2px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0%, 100% { width: 5%; }
    50% { width: 15%; }
}

.separator {
    height: 1px;
    background: #374151;
    margin: 0 20px;
}

.private-session {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: #4b5563;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.toggle-circle {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.private-text {
    color: #fff;
    font-size: 0.9rem;
    flex: 1;
}

.info-icon {
    width: 16px;
    height: 16px;
    border: 1px solid #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: bold;
}

.footer-bar {
    background: #dc2626;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.footer-left {
    display: flex;
    align-items: center;
}

.app-logo {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.username {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.footer-links {
    display: flex;
    gap: 8px;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    opacity: 0.9;
}

.footer-link:hover {
    opacity: 1;
}

.user-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: 50%;
    position: relative;
}

.user-avatar::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 50%;
    opacity: 0.3;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

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

/* Screenshots Section */
.screenshots {
    padding: 60px 0;
    background: var(--color-background);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    background: var(--color-surface);
    aspect-ratio: 16 / 10;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: transform var(--transition-fast);
    user-select: none;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 95%;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 60px 0;
    background: var(--color-surface);
}

/* Requirements Section */
.requirements {
    padding: 60px 0;
    background: var(--color-surface);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.requirement-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.requirement-card h3 {
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    color: var(--color-text);
    align-self: flex-start;
}

.requirement-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    flex: 1;
}

.requirement-card ul li {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.requirement-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-size: 1.2rem;
    line-height: 1.6;
    transform: translateY(0.05em);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

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

/* CTA Section */
.cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Privacy Policy & Contact Pages */
.policy-content {
    padding: 60px 0;
}

.policy-content .container {
    max-width: 900px;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-content h1,
.contact-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.policy-content h2,
.contact-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.policy-section h2 {
    margin-top: 0.5rem;
}

.policy-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--color-text);
}

.policy-content p,
.contact-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.policy-content ul,
.policy-content ol,
.contact-content ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.7;
}

.policy-content li,
.contact-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.policy-content strong {
    color: var(--color-text);
}

.policy-content a,
.contact-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.policy-content a:hover,
.contact-content a:hover {
    text-decoration: underline;
}

.last-updated {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.policy-content hr {
    margin: 2rem 0;
    border: none;
    height: 1px;
    background: var(--color-border);
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-methods {
    margin: 1.5rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.contact-details p {
    margin-bottom: 0.75rem;
}

.contact-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-note {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--color-primary);
}

.contact-note h3 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.contact-support {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 1.5rem 0;
}

.contact-support h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-support p {
    margin: 0;
}

/* Contact Simple Page */
.contact-section {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.contact-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin: 3rem 0;
}

.contact-email-card {
    background: var(--color-background);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.contact-email-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-email-card .contact-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.contact-email-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.contact-email-card .email-link {
    font-size: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-fast);
    word-break: break-all;
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.contact-email-card .email-link:hover {
    transform: scale(1.05);
    -webkit-text-fill-color: var(--color-primary-dark);
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .contact-email-card .email-link {
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
        color: var(--color-primary-dark);
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-hero {
        padding: 80px 0 60px;
    }
    
    .app-hero-title {
        font-size: 2.5rem;
    }
    
    .app-hero-subtitle {
        font-size: 1rem;
    }
    
    .app-hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .mockup-screen {
        width: 300px;
        height: 240px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .policy-content,
    .contact-content {
        padding: 1rem;
    }
    
    .policy-content h1,
    .contact-content h1 {
        font-size: 2rem;
    }
    
    .contact-email-card {
        padding: 2rem;
    }
    
    .contact-email-card .email-link {
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .app-hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .features h2,
    .how-it-works h2,
    .cta h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}
