/*
Theme Name: EassyPDF Online
Theme URI: https://eassypdf.online
Author: EassyPDF Team
Description: Polished, Fast, and Secure PDF Tools Theme based on the refined static design.
Version: 3.2.0
Text Domain: eassypdf
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Brand Colors */
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #dc2626;
    --accent: #f59e0b;

    /* UI Palette */
    --dark-bg: #0f172a;
    --surface-light: #ffffff;
    --surface-off: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Gradients */
    --gradient-hero: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 100%);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -10px rgba(30, 64, 175, 0.15);
    --shadow-lg: 0 20px 40px -15px rgba(30, 64, 175, 0.2);

    /* Dimensions */
    --header-height: 80px;
    --container-width: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--surface-off);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Modern Header */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
}

header .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-weight: 700;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Dropdown Styles */
.has-dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    display: none;
    padding: 10px 0;
    z-index: 1001;
    border: 1px solid #e2e8f0;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: #f8fafc;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.btn-signup {
    background: #e53e3e;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-signup:hover {
    background: #c53030;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    gap: 10px;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(30, 64, 175, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -6px rgba(30, 64, 175, 0.5);
}

.btn-outline {
    background: white;
    border: 2.5px solid #e2e8f0;
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: #eff6ff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: var(--gradient-hero);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--surface-off));
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.2rem;
    margin-bottom: 24px;
}

.hero-text .subtext {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(1deg);
    }
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(30, 64, 175, 0.1));
    animation: float 8s ease-in-out infinite;
}

/* Tool Search & Filter */
.tool-search-box {
    position: relative;
    max-width: 550px;
    margin-top: 48px;
    background: white;
    border-radius: 50px;
    padding: 6px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    outline: none;
}

.tool-search-box i {
    position: absolute;
    left: 20px;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Tools Grid */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.tool-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 20px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    transition: all 0.5s;
}

.tool-card:hover .tool-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    flex-grow: 1;
}

/* Tool Inner Page */
.tool-container {
    max-width: 1000px;
    margin: 120px auto 60px;
    text-align: center;
    padding: 0 24px;
}

.drop-zone {
    border: 2px dashed #3b82f6;
    /* Thinner border */
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    /* Significantly reduced size */
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 32px;
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.drop-zone:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.drop-icon {
    font-size: 56px;
    /* Reduced icon size */
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 1;
}

/* File List Grid */
#file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.file-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease;
}

.file-item i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.file-item-name {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.file-item-size {
    font-size: 0.7rem;
    color: #64748b;
}

/* Action Area */
#action-area {
    margin-top: 40px;
    text-align: center;
}

.btn-action {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(30, 64, 175, 0.4);
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(30, 64, 175, 0.5);
}

/* Dashboard Mockup (Unique Visual) */
.live-stats {
    background: var(--dark-bg);
    color: white;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 48px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item span {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-item b {
    font-size: 1.2rem;
    color: #38bdf8;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 80px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 32px;
    font-size: 1.15rem;
}

.footer-links a {
    color: #94a3b8;
    display: block;
    margin-bottom: 16px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }

    .hero-image {
        display: none;
    }

    .live-stats {
        flex-direction: column;
        gap: 24px;
    }
}

/* Progress & Success */
.progress-container {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s;
}

.success-area {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog & Pagination Styles */
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.blog-card a {
    color: inherit;
}

.pagination {
    margin: 60px 0;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    padding: 10px 18px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    font-weight: 600;
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Single Post Content Styling */
.post-content h2,
.post-content h3 {
    margin: 32px 0 16px;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px 24px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    font-style: italic;
    color: var(--text-muted);
    margin: 32px 0;
}

.post-content img {
    border-radius: 12px;
    margin: 24px 0;
    max-width: 100%;
    height: auto;
}