/* Dashboard Tools - Main Stylesheet */
/* Modern, Clean, Professional Design */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-lighter: #c7d2fe;
    --secondary: #64748b;
    --accent: #10b981;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-body: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}

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

.btn-white:hover {
    background: var(--bg-alt);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.brand i {
    font-size: 1.75rem;
    color: var(--primary);
}

.brand:hover {
    color: var(--text);
}

.brand span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.site-header .mobile-nav-menu {
    display: none !important;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-inline-start: 0;
}

.site-header .mobile-nav-menu li {
    list-style: none;
}

.site-header .mobile-nav-menu li::marker {
    content: '';
}

.site-header .mobile-nav-menu li a {
    display: block;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
}

.site-header .mobile-nav-menu li a:hover {
    color: var(--primary);
    background: var(--bg-alt);
}

.nav-menu li a {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
}

.nav-menu li a:hover {
    color: var(--primary);
    background: var(--bg-alt);
}

.nav-search {
    display: flex;
    align-items: center;
}

.nav-search form {
    display: flex;
    align-items: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px 4px 4px 16px;
}

.nav-search input {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
    width: 200px;
}

.nav-search button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #e0e7ff 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-search form {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.hero-search input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.hero-search button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.tools-section,
.categories-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1.5rem;
}

.category-info h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.category-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

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

.tool-card .tool-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.tool-card .tool-content {
    flex: 1;
    min-width: 0;
}

.tool-card h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card .tool-category {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-lighter);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.tool-card .tool-arrow,
.tool-card .tool-link {
    position: absolute;
    right: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.tool-card:hover .tool-arrow,
.tool-card:hover .tool-link {
    color: var(--primary);
    transform: translateX(4px);
}

.tool-icon.lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-content .btn-white {
    background: white;
    color: var(--primary);
}

.cta-content .btn-white:hover {
    background: var(--bg-alt);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--text);
    color: white;
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .brand {
    color: white;
    margin-bottom: 16px;
}

.footer-brand .brand i {
    color: var(--primary);
}
.footer-brand .brand span {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

.footer-contact i {
    margin-right: 8px;
    width: 16px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    margin: 24px 0;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--text-secondary);
}

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

.breadcrumb [aria-current] {
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   TOOL DETAIL
   ============================================ */

.tool-detail {
    padding: 48px 0;
}

.tool-detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.tool-detail-header .tool-icon.lg {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    border-radius: var(--radius-lg);
    font-size: 2.5rem;
    color: var(--primary);
}

.tool-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.tool-detail-header .tool-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tool-meta a,
.tool-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-meta a {
    color: var(--primary);
}

.tool-detail-content {
    max-width: 800px;
}

.tool-description-full {
    margin-bottom: 32px;
}

.tool-description-full h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.tool-description-full p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.tool-actions {
    margin: 32px 0;
}

.related-tools {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.related-tools h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* ============================================
   CATEGORY PAGE
   ============================================ */

.category-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.category-header .category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 2rem;
}

.category-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.category-header p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.category-header .tool-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   SEARCH PAGE
   ============================================ */

.search-header {
    text-align: center;
    margin-bottom: 32px;
}

.search-header h1 {
    margin-bottom: 8px;
}

.search-header p {
    color: var(--text-secondary);
}

.search-form-large {
    max-width: 600px;
    margin: 0 auto 48px;
}

.search-form-large form {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-form-large input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-form-large button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 1.25rem;
    cursor: pointer;
}

/* ============================================
   STATIC PAGES
   ============================================ */

.static-page {
    max-width: 800px;
    margin: 48px auto;
    padding: 48px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.static-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.static-header h1 {
    font-size: 2rem;
}

.static-content {
    line-height: 1.8;
}

.static-content h1,
.static-content h2,
.static-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.static-content p {
    margin-bottom: 16px;
}

.static-content ul,
.static-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.static-content li {
    margin-bottom: 8px;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   LOAD MORE
   ============================================ */

.load-more {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   ERROR PAGE
   ============================================ */

.error-page {
    text-align: center;
    padding: 120px 24px;
}

.error-page h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

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

.hero-content,
.category-card,
.tool-card {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 48px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-search form {
        flex-direction: column;
    }
    
    .hero-search input {
        width: 100%;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .tools-section,
    .categories-section {
        padding: 48px 0;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .tool-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
    }
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 360px;
    overflow: hidden;
    margin: 1.5rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    display: flex;
    align-items: center;
}

.banner-content {
    max-width: 600px;
    padding: 2rem;
    color: #fff;
}

.banner-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: #fff;
}

.banner-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.3s;
    z-index: 10;
}

.banner-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.banner-arrow.prev {
    left: 1rem;
}

.banner-arrow.next {
    right: 1rem;
}

.banner-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.3s;
}

.banner-dots .dot.active {
    background: #fff;
}

@media (max-width: 768px) {
    .banner-slider {
        height: 220px;
    }
    .banner-content h2 {
        font-size: 1.25rem;
    }
    .banner-content p {
        font-size: 0.875rem;
    }
}

.banner-nav button:hover {
    background: rgba(255,255,255,0.4);
}

.banner-dots {
    display: flex;
    gap: 0.5rem;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
}

.banner-dot.active {
    background: #fff;
}

@media (max-width: 768px) {
    .banner-slider {
        height: 300px;
    }
    
    .banner-content h2 {
        font-size: 1.75rem;
    }
}
