/* FreeToolBoxes - Global Styles */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

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

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

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

/* Header */
header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    outline: none;
}

.search-box input:focus {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3), var(--shadow-lg);
}

/* Tool Sections */
.tool-section {
    padding: 60px 20px;
}

.tool-section.alt-bg {
    background: white;
}

.tool-section h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s ease;
    display: block;
}

.alt-bg .tool-card {
    background: var(--light);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.tool-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Ad Container */
.ad-container {
    padding: 20px;
    text-align: center;
}

.ad-placeholder {
    background: #f3f4f6;
    border: 2px dashed var(--border);
    padding: 40px;
    color: var(--gray);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 20px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand .logo {
    color: white;
    display: block;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Tool Page Styles */
.tool-page {
    padding: 40px 20px;
    min-height: 60vh;
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h1 {
    font-size: 2.25rem;
    margin-bottom: 10px;
}

.tool-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.tool-input, .tool-output {
    margin-bottom: 20px;
}

.tool-input label, .tool-output label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

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

.btn-secondary {
    background: var(--gray);
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
