/* Chroma Chameleon - Main Stylesheet */

/* Define the primary accent color and font settings */
:root {
    --primary-color: #38c89a; /* Based on the chameleon icon/button color */
    --text-color: #333;
    --background-color: #ffffff;
    --header-background: #f7fcfb; /* Light background from screenshot */
    --heading-color: #24292e; /* Dark text from screenshot */
    --max-width: 960px;
    --padding-base: 24px;
}

/* Basic Reset and Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    padding: var(--padding-base);
}

/* Typography */
h1, h2, h3 {
    color: var(--heading-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 0;
    padding-top: 1em;
}

h2 {
    font-size: 1.75em;
    padding-bottom: 0.25em;
    border-bottom: 2px solid var(--primary-color);
}

h3 {
    font-size: 1.3em;
    font-weight: 700;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header Section */
.header {
    background-color: var(--header-background);
    text-align: center;
    padding: 40px 0 20px 0;
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    width: 64px; /* Size for the chameleon icon */
    height: 64px;
    margin-right: 15px;
}

/* Image/Screenshot Styling */
.project-image {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Horizontal Rule Styling */
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2em 0;
}

/* Lists */
ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    position: relative;
    margin-bottom: 0.75em;
    padding-left: 2em;
}

/* Code and Inline Code */
pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    font-size: 0.9em;
    border: 1px solid #e1e4e8;
}

code {
    font-family: monospace;
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Built With Section (as a list) */
.built-with ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.built-with ul li::before {
    content: '★'; /* Change bullet for distinction */
    color: #f7a022; /* A star color */
}

/* Feature Icons */
.key-features li::before {
    font-size: 1em;
    width: 1.5em;
    margin-left: -1.5em;
}

/* Specific icon overrides for features to match the provided text */
.key-features li:nth-child(1)::before { content: '👀'; color: transparent;} /* Dual-Theme Preview */
.key-features li:nth-child(2)::before { content: '⚡'; color: transparent;} /* Live Color Editing */
.key-features li:nth-child(3)::before { content: '🎨'; color: transparent;} /* Visual Color Swatches (using a square) */
.key-features li:nth-child(4)::before { content: '📋'; color: transparent;} /* Bulk Paste & Apply */
.key-features li:nth-child(5)::before { content: '🧩'; color: transparent;} /* Comprehensive UI Mockup */
.key-features li:nth-child(6)::before { content: '❓'; color: transparent;} /* Interactive Instructions */
.key-features li:nth-child(7)::before { content: '📱'; color: transparent;} /* Responsive Design */

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #2fa98a);
    color: white;
    text-align: center;
    padding: 3em 2em;
    margin: 3em 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(56, 200, 154, 0.3);
}

.cta-section h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 1em;
    font-size: 2em;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 2em;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1em 2.5em;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    background-color: #f8f9fa;
}

/* Contact Section */
.contact {
    text-align: left;
    /* padding: var(--padding-base); */
    margin-top: 3em;
    border-top: 1px solid #eee;
}

.contact p {
    margin: 0.5em 0;
}

/* Social Media Sharing Section */
.social-sharing {
    text-align: center;
    margin: 3em 0 2em 0;
    padding: 2em 1em;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.social-sharing h3 {
    color: var(--heading-color);
    margin-bottom: 1.5em;
    font-size: 1.4em;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: all 0.3s ease;
}

/* Individual social media brand colors */
.social-icon.facebook {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

.social-icon.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-icon.linkedin {
    background: linear-gradient(135deg, #0077b5, #005582);
}

.social-icon.reddit {
    background: linear-gradient(135deg, #ff4500, #e03d00);
}

.social-icon.whatsapp {
    background: linear-gradient(135deg, #25d366, #20bd5a);
}

.social-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.social-icon.discord {
    background: linear-gradient(135deg, #5865f2, #4752c4);
}

.social-icon.email {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.social-icon.copy-link {
    background: linear-gradient(135deg, var(--primary-color), #2fa98a);
}

/* Tooltip for social icons */
.social-icon::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.social-icon:hover::after {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        padding: 20px 0 15px 0;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 2em;
        padding-top: 0.5em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    .cta-section {
        padding: 2em 1.5em;
        margin: 2em 0;
    }
    
    .cta-section h2 {
        font-size: 1.6em;
    }
    
    .cta-section p {
        font-size: 1.1em;
    }
    
    .cta-button {
        padding: 0.8em 2em;
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 12px;
    }
    
    h1 {
        font-size: 1.8em;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .logo {
        width: 48px;
        height: 48px;
    }
    
    .cta-section {
        padding: 1.5em 1em;
        margin: 1.5em 0;
    }
    
    .cta-section h2 {
        font-size: 1.4em;
        margin-bottom: 0.8em;
    }
    
    .cta-section p {
        font-size: 1em;
        margin-bottom: 1.5em;
    }
    
    .cta-button {
        padding: 0.7em 1.5em;
        font-size: 0.95em;
        width: 100%;
        max-width: 280px;
    }
    
    .social-sharing {
        padding: 1.5em 0.8em;
        margin: 2em 0 1.5em 0;
    }
    
    .social-sharing h3 {
        font-size: 1.2em;
        margin-bottom: 1.2em;
    }
    
    .social-icons {
        gap: 12px;
        justify-content: center;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
    }
    
    .social-icon svg {
        width: 22px;
        height: 22px;
    }
    
    /* Improve touch targets for mobile */
    .social-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better spacing for mobile reading */
    p {
        line-height: 1.7;
    }
    
    ul li {
        margin-bottom: 1em;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    .header {
        padding: 15px 0 10px 0;
        margin-bottom: 15px;
    }
    
    .project-image {
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .cta-section {
        padding: 1.2em 0.8em;
        border-radius: 8px;
    }
    
    .cta-section h2 {
        font-size: 1.3em;
    }
    
    .cta-button {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Stack elements more tightly on very small screens */
    .contact {
        margin-top: 2em;
        padding-top: 1em;
    }
}