/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

body.sponge-page {
    background: linear-gradient(135deg, #ff9a56 0%, #ffb347 50%, #ffa726 100%);
    background-attachment: fixed;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg,
        rgba(255, 154, 86, 0.95) 0%,
        rgba(255, 179, 71, 0.95) 50%,
        rgba(255, 167, 38, 0.95) 100%);
    border-bottom: 3px solid rgba(255, 112, 67, 0.8);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.nav-links a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    transition: text-shadow 0.3s;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* Sponge Hero Section */
.sponge-hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2.8rem 2rem;
    color: #fff;
    margin-top: 2rem;
}

.sponge-icon {
    width: 500px;
    height: 500px;
    flex-shrink: 0;
    border-radius: 50px;
    transform: scaleX(-1);
}

.sponge-hero-content {
    flex: 1;
    text-align: left;
}

.sponge-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-subtext {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.badge-container {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.app-store-button {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge {
    width: 200px;
    padding-top: 6px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.free-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    align-self: center;
}

/* Product Introduction */
.product-intro {
    background-color: #fff;
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-intro h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.product-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Use Cases Section */
.use-cases {
    padding: 3rem 2rem;
    margin: 2rem 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.use-cases h2 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid #ff7043;
}

.use-case h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.use-case p {
    color: #666;
    line-height: 1.6;
}

.use-case p a {
    color: #ff7043;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.use-case p a:hover {
    color: #ff5722;
    text-decoration: underline;
}

/* Features Section */
.features-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.features-section h2 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.feature p {
    color: #666;
}

.feature p a {
    color: #ff7043;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.feature p a:hover {
    color: #ff5722;
    text-decoration: underline;
}

/* Sources Section */
.sources-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sources-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.sources-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.source {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border-top: 4px solid #ff7043;
}

.source h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.source h3 a {
    color: #ff7043;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.source h3 a:hover {
    color: #ff5722;
    text-decoration: underline;
}

.source p {
    color: #666;
    line-height: 1.6;
}

.source p a {
    color: #ff7043;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.source p a:hover {
    color: #ff5722;
    text-decoration: underline;
}

.source-coming-soon {
    background-color: rgba(255, 255, 255, 0.4);
    border-top: 4px dashed #ff9a56;
}

.source-coming-soon h3 {
    color: #5a4a3a;
    font-style: italic;
}

.source-coming-soon p {
    color: #777;
}

/* How It Works Section */
.how-it-works {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.how-it-works h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.steps {
    max-width: 700px;
    margin: 0 auto;
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.steps li {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    color: #333;
    line-height: 1.6;
}

.steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    background-color: #ff7043;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.steps a {
    color: #ff7043;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.steps a:hover {
    color: #ff5722;
    text-decoration: underline;
}

/* Technical Details Section */
.tech-details {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tech-details h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tech-list {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

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

.tech-list strong {
    color: #fff;
}

/* Call to Action Section */
.cta {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cta p {
    color: #666;
    font-size: 1.1rem;
}

/* Page Hero (for secondary pages) */
.page-hero {
    text-align: center;
    padding: 3rem 2rem;
    color: #fff;
    margin-top: 2rem;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.page-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Content Cards (white background sections) */
.content-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem 2rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.content-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 3px solid #ff7043;
    padding-bottom: 0.5rem;
}

.content-card p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Setup Sources Form Styles */

.source-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff7043;
    box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.2);
}

.form-group input::placeholder {
    color: #aaa;
}

.generated-url-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.generated-url-section h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.url-instructions {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.url-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.url-display code {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #333;
    word-break: break-all;
    line-height: 1.5;
}

.copy-button {
    flex-shrink: 0;
    background-color: #ff7043;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    background-color: #ff5722;
    transform: scale(1.05);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-feedback {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #4CAF50;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}

.copy-feedback.error {
    color: #f44336;
}

/* Report Button */
.report-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #ff7043;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.report-button:hover {
    background-color: #ff5722;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
    border-bottom: 1px solid rgba(236, 240, 241, 0.5);
    transition: border-color 0.3s;
}

footer a:hover {
    border-color: #ecf0f1;
}

/* Responsive Design - Tablet/iPad */
@media (max-width: 1024px) {
    .sponge-hero {
        gap: 2rem;
        padding: 2.1rem 1.5rem;
    }

    .sponge-icon {
        width: 320px;
        height: 320px;
    }

    .sponge-hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .free-badge {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }

    .nav-links {
        gap: 1.2rem;
        font-size: 0.95rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

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

    .page-hero .subtitle {
        font-size: 1rem;
    }

    .content-card h2 {
        font-size: 1.25rem;
    }

    .content-card {
        padding: 1.5rem 1rem;
    }

    .url-display {
        flex-direction: column;
        align-items: stretch;
    }

    .url-display code {
        font-size: 0.75rem;
    }

    .copy-button {
        align-self: flex-end;
    }

    .sponge-hero {
        flex-direction: column;
        text-align: center;
    }

    .sponge-hero-content {
        text-align: center;
    }

    .badge-container {
        justify-content: center;
    }

    .sponge-hero h1 {
        font-size: 2rem;
    }

    .sponge-icon {
        width: 280px;
        height: 280px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-subtext {
        font-size: 0.9rem;
    }

    .product-intro p {
        font-size: 1rem;
    }

    .free-badge {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .feature-grid, .use-case-grid {
        grid-template-columns: 1fr;
    }

    .sources-info {
        grid-template-columns: 1fr;
    }
}
