/* =====================================================
   MixOfAll - Main Stylesheet
   A comprehensive CSS file for consistent styling across all pages
   ===================================================== */

/* Google Fonts - Loaded via HTML preload for better performance */
/* Font-display: swap ensures text remains visible during font load */

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    /* Primary Colors */
    --primary-start: #667eea;
    --primary-end: #764ba2;
    --primary-gradient: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    
    /* Success Colors */
    --success-color: #10b981;
    --success-light: #d1fae5;
    
    /* Warning/Ad Colors */
    --ad-start: #ffd700;
    --ad-end: #ff8c00;
    --ad-gradient: linear-gradient(135deg, var(--ad-start) 0%, var(--ad-end) 100%);
    
    /* Neutral Colors */
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 70px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   Layout Components
   ===================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.main-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    padding: var(--spacing-lg);
}

@media (min-width: 768px) {
    .main-card {
        padding: var(--spacing-xl);
    }
}

.main-card:hover {
    box-shadow: var(--shadow-xl);
}

/* =====================================================
   Breadcrumb Navigation
   ===================================================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: var(--spacing-sm) 0;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* =====================================================
   Form Elements
   ===================================================== */
.input-label {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.input-field:hover {
    border-color: #d1d5db;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: white;
    color: var(--primary-end);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-start);
    background: #f8faff;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* =====================================================
   Cards
   ===================================================== */
.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary-start);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.tool-card {
    background: var(--primary-gradient);
    padding: 25px;
    border-radius: var(--radius-lg);
    color: white;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.tool-card p {
    opacity: 0.95;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.tool-card a {
    display: inline-block;
    background: white;
    color: var(--primary-end);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tool-card a:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* =====================================================
   Advertisement Container
   ===================================================== */
.ad-container {
    background: var(--ad-gradient);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .ad-container {
        padding: 30px;
    }
}

.ad-container p:first-child {
    font-weight: 700;
    font-size: 1.125rem;
}

.ad-container p:last-child {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: var(--spacing-sm);
}

/* =====================================================
   Like Button Component
   ===================================================== */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.like-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.like-btn[aria-pressed="true"] {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

/* =====================================================
   Footer Styles
   ===================================================== */
.site-footer {
    max-width: 1280px;
    margin: 3.5rem auto 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    padding-bottom: 2.5rem;
}

.footer-inner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-lg);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    text-align: left;
    padding: 0 var(--spacing-md);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-nav {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-nav h4 {
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: var(--spacing-xs);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: block;
    padding: 3px 0;
    transition: all 0.2s ease;
}

.footer-nav a:hover {
    color: white;
    text-decoration: underline;
    padding-left: 5px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-legal a:hover {
    text-decoration: underline;
    color: white;
}

.footer-copyright {
    font-size: 0.75rem;
    margin-top: var(--spacing-md);
    opacity: 0.7;
}

/* =====================================================
   Utility Classes
   ===================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* =====================================================
   Privacy Notice Component
   ===================================================== */
.privacy-notice {
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.privacy-notice-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeIn { animation: fadeIn 0.6s ease-out; }
.animate-slideUp { animation: slideUp 0.6s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }

/* =====================================================
   Print Styles
   ===================================================== */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .ad-container,
    .site-footer,
    .like-btn,
    .breadcrumb {
        display: none !important;
    }
    
    .main-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* =====================================================
   Accessibility
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--primary-start);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-start);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* =====================================================
   Tool Cards (for category index pages)
   ===================================================== */
.tool-card {
    display: block;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid var(--border-color);
}

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

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-end);
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* =====================================================
   Advertisement Container
   ===================================================== */
.ad-container {
    background: var(--ad-gradient);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    color: white;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .ad-container {
        padding: var(--spacing-xl);
    }
}

/* =====================================================
   Site Footer
   ===================================================== */
.site-footer {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl) var(--spacing-md);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: white;
}

.footer-tagline {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-lg);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    text-align: left;
    padding: var(--spacing-md);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-nav {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-xl);
    }
}

.footer-nav h4 {
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: var(--spacing-xs);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: var(--spacing-md);
}

/* =====================================================
   Privacy Notice
   ===================================================== */
.privacy-notice {
    background: var(--primary-end);
    color: white;
    font-weight: 600;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

/* =====================================================
   Dark Mode Support (Optional)
   ===================================================== */
@media (prefers-color-scheme: dark) {
    /* Users can enable dark mode support by uncommenting
    :root {
        --text-dark: #f9fafb;
        --bg-light: #1f2937;
    }
    */
}

