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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Legal Pages Styling */
.legal-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.legal-content h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.legal-content h2 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.last-updated {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Blog Styles */
.blog-hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.blog-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured .blog-image {
    height: auto;
    min-height: 300px;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.blog-card h2 {
    padding: 1.5rem;
    margin: 0;
    font-size: 1.3rem;
}

.blog-card h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #3498db;
}

.blog-meta {
    padding: 0 1.5rem;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.category {
    background: #e9ecef;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-weight: 500;
}

.blog-card p {
    padding: 0 1.5rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.read-more {
    padding: 0 1.5rem 1.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    color: #2980b9;
}

/* About Page Styles */
.about-hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.about-hero h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

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

.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Contact Page Styles */
.contact-hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-method {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.contact-email {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Article Styles */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-lead {
    font-size: 1.2rem;
    color: #6c757d;
    margin-top: 1rem;
    line-height: 1.8;
}

.article-content {
    padding: 0 3rem 3rem;
}

.article-content h2 {
    color: #2c3e50;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-content h3 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.article-content h4 {
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.article-content pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid #3498db;
}

.article-content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.article-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-button {
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.article-footer {
    padding: 2rem 3rem;
    border-top: 1px solid #e9ecef;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: #e9ecef;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #495057;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
}

.nav-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .article-header,
    .article-content,
    .article-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
}

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

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

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

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

.nav a:hover {
    color: #3498db;
}

.main {
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: #666;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.generator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.controls-panel h3,
.preview-panel h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.control-input,
.slider {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.control-input:focus,
.slider:focus {
    outline: none;
    border-color: #3498db;
}

.slider {
    -webkit-appearance: none;
    height: 8px;
    background: linear-gradient(to right, #3498db, #e74c3c);
    border-radius: 5px;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid #3498db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.color-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.color-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-picker {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e1e8ed;
}

.color-input {
    padding: 0.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-family: monospace;
    text-transform: uppercase;
}

.preset-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.preset-item {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.preset-item:hover {
    transform: scale(1.05);
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.preview-container {
    margin-bottom: 2rem;
}

.gradient-preview {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    border: 3px solid #e1e8ed;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    position: relative;
    overflow: hidden;
}


.gradient-preview::after {
    content: 'Your gradient preview';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
}

.code-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.code-container {
    position: relative;
}

#cssOutput {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    background: #f8f9fa;
    resize: vertical;
    line-height: 1.4;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #2980b9;
}

.copy-btn.copied {
    background: #27ae60;
}

.download-section {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.action-btn:first-child {
    background: #e74c3c;
    color: white;
}

.action-btn:first-child:hover {
    background: #c0392b;
}

.action-btn:last-child {
    background: #95a5a6;
    color: white;
}

.action-btn:last-child:hover {
    background: #7f8c8d;
}

.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.guide-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.guide-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.guide-card h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

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

.css-examples {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.css-examples h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.example-code {
    background: #2c3e50;
    border-radius: 6px;
    overflow: hidden;
}

.example-code pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.example-code code {
    color: #a8e6cf;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hero-features {
    margin-top: 2rem;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.features-section, .benefits-section, .faq-section, .seo-content {
    margin-top: 4rem;
    padding: 3rem 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.features-section h2, .benefits-section h2, .faq-section h2, .seo-content h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.feature-card {
    background: #f8f9fa;
    padding: 1.8rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.benefits-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.benefit-text h3, .benefit-text h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.benefit-text h4 {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.benefit-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.benefit-text ul {
    list-style: none;
    padding: 0;
}

.benefit-text li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.gradient-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.8rem;
}

.example-grad {
    height: 70px;
    border-radius: 8px;
    border: 2px solid #e1e8ed;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.example-grad:hover {
    transform: scale(1.05);
}

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

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.faq-item code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    color: #e74c3c;
}

.seo-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.seo-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.seo-text h3 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.seo-text strong {
    color: #2c3e50;
    font-weight: 600;
}

@media (max-width: 768px) {
    .generator-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-badges {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .color-controls {
        grid-template-columns: 1fr;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .preset-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    
    .preset-item {
        height: 40px;
    }
    
    .download-section {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gradient-examples {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .example-grad {
        height: 60px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-section h2, .benefits-section h2, .faq-section h2, .seo-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}