/* ESP32 P4 LED Controller - Professional Audio-Reactive LED System Styles */

:root {
    --primary-color: #ff6b6b;
    --accent-color: #ff6b6b;
    --accent-secondary: #4ecdc4;
    --accent-tertiary: #ffe66d;
    --dark-bg: #0f1115;
    --card-bg: #1a1d23;
    --card-hover: #22252d;
    --text-color: #e8ecef;
    --text-secondary: #adb5bd;
    --border-color: #2c303a;
    --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ffe66d 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1d23 0%, #0f1115 100%);
    --glow: 0 0 15px rgba(255, 107, 107, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 170, 232, 0.05) 0%, transparent 60%);
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero {
    padding-top: 100px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Quick Start Information Banner */
.quickstart-banner {
    background: rgba(0, 170, 232, 0.1);
    border: 1px solid rgba(0, 170, 232, 0.3);
    border-radius: 8px;
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.quickstart-banner strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.quickstart-banner p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.quickstart-banner .highlight {
    color: var(--accent-secondary);
    font-weight: 600;
    background: rgba(78, 205, 196, 0.15);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 3.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--glow);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 107, 107, 0.8);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

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

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

/* Technical Specs Section */
.specs-section {
    padding: 6rem 2rem;
    background: radial-gradient(circle at center, #1a1d23 0%, #0f1115 100%);
}

.specs-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.spec-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.spec-category {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-list li::before {
    content: '✓';
    color: var(--accent-secondary);
    font-weight: 700;
}

/* Comparison Section */
.comparison-section {
    padding: 6rem 2rem;
    background: var(--dark-bg);
}

.comparison-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: rgba(0, 170, 232, 0.05);
    font-weight: 600;
    color: var(--text-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.1);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

.comparison-table td {
    color: var(--text-secondary);
}

.highlight {
    color: #ff6b6b;
    font-weight: 700;
}

/* Quick Start Section */
.quickstart-section {
    padding: 6rem 2rem;
    background: radial-gradient(circle at center, #1a1d23 0%, #0f1115 100%);
}

.quickstart-container {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--glow);
}

.step h3 {
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Install Section */
.install-section {
    padding: 6rem 2rem;
    text-align: center;
}

.install-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.install-container h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.esp-web-install-button {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    display: block;
}

/* Style the internal button of esp-web-install-button */
.esp-web-install-button::part(button) {
    padding: 1.75rem 3.5rem !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    min-width: 300px !important;
    transition: all 0.3s ease !important;
}

/* Alternative approach using shadow DOM styling */
.esp-web-install-button button {
    padding: 1.75rem 3.5rem !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    min-width: 300px !important;
    transition: all 0.3s ease !important;
}

/* Hover effect for the button */
.esp-web-install-button:hover::part(button),
.esp-web-install-button:hover button {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Responsive sizing for mobile devices */
@media (max-width: 768px) {
    .esp-web-install-button::part(button) {
        padding: 1.25rem 2rem !important;
        font-size: 1.2rem !important;
        min-width: 250px !important;
    }
    
    .esp-web-install-button button {
        padding: 1.25rem 2rem !important;
        font-size: 1.2rem !important;
        min-width: 250px !important;
    }
}

.installation-note {
    background: rgba(0, 170, 232, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: #0a0b0e;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .button-wrapper {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        margin-bottom: 2rem;
    }
}
