@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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


:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --text: #1e293b;
    --text-light: #475569;
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
}



body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
}


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

/* Navigation */
nav {
    background: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
}


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

nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
}

nav .logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}

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

nav ul li a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary);
}


/* Header */
header {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}


header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 3rem 0;
}

/* Tool Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

a.tool-card {
    text-decoration: none;
    color: inherit;
}


.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

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

.tool-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: 500;
}

.btn:hover {
    background: var(--primary-dark);
}


/* Tool Page Styles */
.tool-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.tool-area {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.tool-area:focus {
    outline: none;
    border-color: #3498db;
}

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

.stat-box {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}


.stat-box .label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s;
}

button:hover {
    background: var(--primary-dark);
}


button:active {
    transform: scale(0.98);
}

.clear-btn {
    background: #e74c3c;
}

.clear-btn:hover {
    background: #c0392b;
}

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

.copy-btn:hover {
    background: #229954;
}

/* Features Section */
.features {
    margin: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

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

.feature {
    text-align: center;
    padding: 2rem;
}

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

.feature p {
    color: #666;
}

/* Blog Section */
.blog-preview {
    margin: 4rem 0;
}

.blog-preview h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

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

.blog-grid a.blog-card {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.blog-grid article {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.blog-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.blog-grid article h3 {
    margin-bottom: 0.5rem;
}

.blog-grid article h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-grid article h3 a:hover {
    color: #3498db;
}

.blog-grid article p {
    color: #666;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

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

.content-section h3 {
    color: #34495e;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul, .content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

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

/* Ad Container */
.ad-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    text-align: center;
}

/* Footer */
footer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 3rem 0;
    margin-top: 4rem;
}


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

footer nav {
    background: none;
    padding: 0;
    position: static;
    box-shadow: none;
}

footer nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 2rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    nav .logo img {
        height: 40px;
        max-width: 120px;
        max-height: 40px;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    footer nav a {
        margin: 0 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: row;
        gap: 0;
    }
    
    nav ul li a {
        color: #1e293b;
        display: block;
        padding: 0.5rem 1rem;
    }
    
    nav .container {
        position: relative;
    }
}