/* ===== RESET & BASE ===== */
:root {
      /* Core Google Colors */
  /* UI Neutrals */
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --border-color: #dadce0;
  --bg-light: #f8f9fa;
  --bg-surface: #ffffff;
        --primary: #4285f4;
        --primary-hover: #4f46e5;
        --primary-light: #eef2ff;
        --success: #34a853;
        --success-light: #d1fae5;
        --danger: #ea4335;
        --danger-light: #fee2e2;
        --warning: #fbbc05;
        --warning-light: #fef3c7;
        --info: #3b82f6;
        --info-light: #dbeafe;
        --gray-50: #f9fafb;
        --gray-100: #f3f4f6;
        --gray-200: #e5e7eb;
        --gray-300: #d1d5db;
        --gray-400: #9ca3af;
        --gray-500: #6b7280;
        --gray-600: #4b5563;
        --gray-700: #374151;
        --gray-800: #1f2937;
        --gray-900: #111827;
        --white: #ffffff;
        --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
        --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
        --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
        --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
        --radius-sm: 6px;
        --radius: 8px;
        --radius-lg: 12px;
        --transition: 0.2s ease;
    }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

/* ===== HEADER & NAVIGATION ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.back-link{
    text-decoration: none;
    color: var(--text-primary);
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #222;
}

.logo-icon {
    font-size: 28px;
}

.logo-text h1 {
    font-size: 18px;
    margin: 0;
}

.logo-text small {
    font-size: 12px;
    color: #777;
}

/* Navigation */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

/* Mobile Button */
.mobile-menu-btn {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000 !important;
}

/* Mobile Search */
.mobile-only {
    display: none;
}

.mobile-search-form {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.mobile-search-form input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.rating-widget{
    margin: 15px 0;
}
/* Responsive */
@media (max-width: 768px) {

    .mobile-menu-btn {
        display: block;
        width: auto;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        display: none;
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 15px;
    }

    .mobile-only {
        display: block;
    }
}

/* Animation */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 0;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
}

.search-box button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.tool-search {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

.tool-search input,
.tool-search select {
    flex: 1;
    padding: 5px;
}

.tool-search button {
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 8px;
}

.search-box button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 3rem 0;
    background: white;
}

.categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--bg-light);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    color: var(--primary-hover);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* ===== TOOLS SECTIONS ===== */
.tools-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.tools-section:nth-child(even) {
    background: white;
}

.tools-section h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tool-card {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    margin: 10px 0;
    display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tool-card h3 a {
    color: var(--dark);
    text-decoration: none;
}

.tool-card h3 a:hover {
    color: var(--primary);
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn-use-tool {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: var(--bg-light);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-use-tool:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.section-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-view-all {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-view-all:hover {
    background: var(--primary);
    color: white;
}

/* ===== FEATURES ===== */
.features {
    padding: 4rem 0;
    background: var(--primary);
    color: var(--bg-light);
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--bg-surface);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color:var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
}

/* ===== TOOL PAGES ===== */
.tool-container {
    padding: 0 20px;
}

.breadcrumb {
    margin:3px !important;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
tool-link{
    color: var(--text-primary);
    text-decoration: none;
}

.tool-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .tool-wrapper {
        grid-template-columns: 1fr;
    }
}

.input-section, .output-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.input-section h2, .output-section h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.btn-generate {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-generate:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.output-container {
    min-height: 300px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.output-placeholder {
    color: var(--gray);
    font-style: italic;
}

.generated-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
}

.output-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--light);
    border-color: var(--gray);
}

.related-tools {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.related-tools h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.related-tool {
    display: block;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.related-tool:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* ===== ADMIN STYLES ===== */
.admin-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-table th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover {
    background: var(--light);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-ai { background: #e3f2fd; color: #1565c0; }
.badge-seo { background: #e8f5e9; color: #2e7d32; }
.badge-image { background: #f3e5f5; color: #7b1fa2; }
.badge-text { background: #fff3e0; color: #ef6c00; }
.badge-utility { background: #e0f2f1; color: #00897b; }

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status.active { background: #d4edda; color: #155724; }
.status.inactive { background: #f8d7da; color: #721c24; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
   .desktop-search{
    display: none;
   }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input,
    .search-box button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .tool-wrapper {
        padding: 1rem;
    }
    
    .input-section,
    .output-section {
        padding: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-card, .category-card, .feature {
    animation: fadeIn 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== AD CONTAINERS ===== */
.ad-container {
    margin: 2rem auto;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.ad-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, #f1f1f1 25%, #e0e0e0 25%, #e0e0e0 50%, #f1f1f1 50%, #f1f1f1 75%, #e0e0e0 75%, #e0e0e0);
    background-size: 50px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-weight: 500;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.hidden { display: none; }
.visible { display: block; }