/*
Theme Name: Free Fast Tool
Theme URI: http://example.com/
Author: Darshan Sohaliya
Author URI: http://example.com/
Description: Lightweight, accessible, mobile-first starter theme with clean templates and enqueueing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freefasttool
*/

/************************************/
/***     01. Global Variables     ***/
/************************************/

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

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --border: #e2e8f0;
  --accent: #f0fdf4;
  --accent-foreground: #166534;
  --radius: 12px;
  --text-green: #166534;
  --bg-green: #dcfce7;
  --text-blue: #1e40af;
  --bg-blue: #dbeafe;
  --text-purple: #6b21a8;
  --bg-purple: #f3e8ff;
  --text-orange: #c2410c;
  --bg-orange: #ffedd5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/************************************/
/***       02. General css        ***/
/************************************/

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--foreground);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--foreground);
  background: var(--muted);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}


/************************************/
/***       03. Footer css        ***/
/************************************/

.footer {
  background: var(--foreground);
  color: var(--background);
  padding: 60px 0 30px;
}

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

.footer-brand p {
  color: #94a3b8;
  margin-top: 16px;
  font-size: 0.95rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: #94a3b8;
}

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

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: #94a3b8;
  transition: color 0.2s;
}

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


/************************************/
/***       04. Mobile Menu css        ***/
/************************************/
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
}

.mobile-nav.active {
  display: block;
}

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

.mobile-nav li {
  margin-bottom: 16px;
}

.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
}


/*************************************************/
/***       05. Home Hero Section -  css        ***/
/*************************************************/
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--muted);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge-highlight {
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 40px;
  text-wrap: balance;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Stats Section */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

/*************************************************/
/***       06. Home Ad Banner -  css        ***/
/*************************************************/
.ad-banner {
  background: linear-gradient(135deg, var(--muted) 0%, #e2e8f0 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 40px 0;
}

.ad-banner-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}

.ad-banner-placeholder {
  background: var(--background);
  border-radius: 8px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/*************************************************/
/***       05. Home Tools Section -  css        ***/
/*************************************************/
.tools-section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.tools-category {
  margin-bottom: 60px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.category-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
  transform: translateY(-4px);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  background: var(--muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s;
}

.tool-card:hover .tool-card-icon {
  background: var(--primary);
}

.tool-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: color 0.3s;
}

.tool-card:hover .tool-card-icon svg {
  color: white;
}

.tool-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.tool-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/*************************************************/
/***       07. Home Sidebar Ad -  css        ***/
/*************************************************/
.tools-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.sidebar-ads {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-ad-box {
  background: linear-gradient(135deg, var(--muted) 0%, #e2e8f0 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.sidebar-ad-placeholder {
  background: var(--background);
  border-radius: 8px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 8px;
}

/*************************************************/
/***       08. Home Features Section -  css        ***/
/*************************************************/
.features {
  padding: 80px 0;
  background: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

/*************************************************/
/***       09. Home CTA Section -  css        ***/
/*************************************************/
.cta {
  padding: 100px 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/*************************************************/
/***       10. Home Responsive -  css        ***/
/*************************************************/
@media (max-width: 1024px) {
  .tools-with-sidebar {
    grid-template-columns: 1fr;
}

.sidebar-ad {
    position: static;
    max-width: 400px;
    margin: 0 auto 40px;
}

.features-grid {
    grid-template-columns: repeat(2, 1fr);
}

.footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
}

@media (max-width: 768px) {
  .nav-links,
  .nav .btn {
    display: none;
}

.mobile-menu-btn {
    display: block;
}

.hero {
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 2.25rem;
}

.hero p {
    font-size: 1rem;
}

.hero-buttons {
    flex-direction: column;
    align-items: center;
}

.hero-buttons .btn {
    width: 100%;
    max-width: 300px;
}

.stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

.stat-number {
    font-size: 1.75rem;
}

.tools-grid {
    grid-template-columns: 1fr;
}

.features-grid {
    grid-template-columns: 1fr;
}

.footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
}

.footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.category-title {
    font-size: 1.25rem;
}

.section-header h2 {
    font-size: 1.75rem;
}
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
}

.header-inner {
    height: 64px;
}

.logo {
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.hero {
    padding: 40px 0 30px;
}

.tools-section,
.features,
.cta {
    padding: 60px 0;
}

.tool-card {
    padding: 20px;
}

.feature-card {
    padding: 24px;
}