/* UtilityHub - Shared Styles */
/* Common styles used across all pages */

:root {
    --primary: #1a2332;
    --secondary: #4a9b8e;
    --accent: #f4a261;
    --background: #fafbfc;
    --text: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

/* Glass Navigation */
.glass-nav {
    backdrop-filter: blur(10px);
    background: rgba(26, 35, 50, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    display: inline-block;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--accent);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(26, 35, 50, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(74, 155, 142, 0.2);
    border-left-color: var(--accent);
    color: var(--accent);
}

/* Tool Tabs */
.tool-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
    background: white;
    padding: 16px 16px 0;
    border-radius: 12px 12px 0 0;
}

.tool-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.tool-tab:hover {
    color: var(--secondary);
    background: rgba(74, 155, 142, 0.05);
}

.tool-tab.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
    background: rgba(74, 155, 142, 0.1);
}

.tool-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tool-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tool Cards */
.tool-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 155, 142, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
}

/* Form Elements */
.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.1);
}

/* Page Container */
.page-container {
    padding-top: 80px; /* Account for fixed navbar */
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 32px;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .tool-tab {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .page-container {
        padding-top: 70px;
    }
    
    .content-wrapper {
        padding: 16px;
    }
}

/* Utility Classes */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }

