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

html {
    scroll-behavior: smooth;
}

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

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2D5A27 0%, #1e3f1a 100%);
    box-shadow: 0 2px 20px rgba(45, 90, 39, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    background-color: rgba(124, 179, 66, 0.2);
    color: #7CB342;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2D5A27;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2D5A27 0%, #7CB342 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666666;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Converter Tool */
.converter-tool {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(45, 90, 39, 0.1);
    border: 1px solid rgba(124, 179, 66, 0.1);
    margin: 2rem 0;
}

.input-section, .output-section {
    margin-bottom: 2rem;
}

.input-label, .output-label {
    display: block;
    font-weight: 600;
    color: #2D5A27;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.input-textarea, .output-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.input-textarea:focus, .output-textarea:focus {
    outline: none;
    border-color: #7CB342;
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
    background-color: #ffffff;
}

.output-textarea {
    background-color: #f8fff8;
    border-color: #7CB342;
}

.convert-button-container {
    text-align: center;
    margin: 2rem 0;
}

.convert-btn {
    background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 179, 66, 0.4);
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
}

.convert-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
}

.output-container {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FF6F00;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3);
}

.copy-btn:hover {
    background: #F57C00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

.copy-btn.copied {
    background: #4CAF50;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666666;
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 1.1rem;
}

/* Content Section */
.content-section {
    padding: 80px 0;
    background: #ffffff;
}

.content-article {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 2.5rem;
    color: #2D5A27;
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-article h3 {
    font-size: 1.8rem;
    color: #2D5A27;
    margin: 2.5rem 0 1rem 0;
    border-bottom: 2px solid #7CB342;
    padding-bottom: 0.5rem;
}

.content-article h4 {
    font-size: 1.4rem;
    color: #2D5A27;
    margin: 2rem 0 1rem 0;
}

.content-article p {
    margin-bottom: 1.5rem;
    color: #444444;
    font-size: 1.05rem;
}

.content-article ul, .content-article ol {
    margin: 1rem 0 1.5rem 2rem;
    color: #444444;
}

.content-article li {
    margin-bottom: 0.5rem;
}

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

.example-item {
    background: #f8fff8;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #7CB342;
}

.example-item code {
    background: #e8f5e8;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    color: #2D5A27;
    font-weight: 600;
}

.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, #2D5A27 0%, #1e3f1a 100%);
    color: #ffffff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:nth-child(even) {
    background: #f8fff8;
}

.comparison-table code {
    background: #e8f5e8;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    color: #2D5A27;
    font-weight: 600;
}

.code-example {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Monaco', 'Menlo', monospace;
}

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

.code-example code {
    background: none;
    padding: 0;
    color: #2D5A27;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2D5A27 0%, #1e3f1a 100%);
    color: #ffffff;
    padding: 3rem 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #7CB342;
}

.footer-text {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #2D5A27 0%, #1e3f1a 100%);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .converter-tool {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .tool-features {
        gap: 1rem;
    }
    
    .feature {
        font-size: 0.8rem;
    }
    
    .content-article h2 {
        font-size: 2rem;
    }
    
    .content-article h3 {
        font-size: 1.5rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .converter-tool {
        padding: 1rem;
    }
    
    .convert-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .copy-btn {
        position: static;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .output-container {
        display: flex;
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.converter-tool {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus styles for accessibility */
.convert-btn:focus,
.copy-btn:focus,
.nav-link:focus {
    outline: 2px solid #7CB342;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .converter-tool {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

