/*
Theme Name: My Free Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A creative, responsive, editable WordPress block theme for AI, marketing, content generation, and web design services.
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-free-theme
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, wide-blocks
*/

/* 
Design System
Font: Inter, Segoe UI, Arial, sans-serif
Main Black: #050510
Soft Black: #0B0B16
Purple: #8B5CF6
Bright Purple: #A855F7
Deep Purple: #5B21B6
Grey Text: #A1A1AA
White: #FFFFFF
Soft White: #F6F4FF
*/

:root {
  --ai-black: #050510;
  --ai-soft-black: #0B0B16;
  --ai-card: #11111F;
  --ai-purple: #8B5CF6;
  --ai-bright-purple: #A855F7;
  --ai-deep-purple: #5B21B6;
  --ai-pink-purple: #D946EF;
  --ai-white: #FFFFFF;
  --ai-soft-white: #F6F4FF;
  --ai-grey: #A1A1AA;
  --ai-border: rgba(255, 255, 255, 0.12);
  --ai-glass: rgba(255, 255, 255, 0.07);
  --ai-shadow: 0 24px 80px rgba(139, 92, 246, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.30), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(217, 70, 239, 0.20), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(91, 33, 182, 0.25), transparent 34%),
    #050510;
  color: #FFFFFF;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #C4B5FD;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  height: auto;
}

::selection {
  background: #8B5CF6;
  color: #FFFFFF;
}

/* Header */

.ai-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(5, 5, 16, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.ai-header a {
  color: #FFFFFF;
}

.ai-header a:hover {
  color: #C4B5FD;
}

.ai-header .wp-block-site-title a {
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Text helpers */

.ai-gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #C4B5FD 35%, #A855F7 70%, #D946EF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-purple-text {
  color: #C4B5FD;
}

.ai-muted {
  color: #A1A1AA;
}

/* Layout helpers */

.ai-section {
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: "";
  position: absolute;
  inset: auto auto 10% -120px;
  width: 260px;
  height: 260px;
  background: rgba(139, 92, 246, 0.20);
  filter: blur(80px);
  border-radius: 999px;
  pointer-events: none;
}

.ai-hero-orb {
  position: relative;
}

.ai-hero-orb::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, #8B5CF6, #D946EF);
  filter: blur(90px);
  opacity: 0.60;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.ai-glass {
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ai-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
    rgba(17, 17, 31, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.30);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ai-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 24px 90px rgba(139, 92, 246, 0.24);
}

.ai-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(196, 181, 253, 0.28);
  color: #DDD6FE;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-mini-tag {
  display: inline-block;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #DDD6FE;
  font-size: 13px;
  font-weight: 700;
}

/* Buttons */

.wp-block-button__link {
  transition: all 0.25s ease;
  box-shadow: 0 16px 45px rgba(139, 92, 246, 0.26);
}

.wp-block-button__link:hover {
  transform: translateY(-3px);
  opacity: 0.95;
  box-shadow: 0 22px 60px rgba(168, 85, 247, 0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  background: rgba(255,255,255,0.06);
  box-shadow: none;
}

/* Portfolio Instagram-style grid */

.ai-portfolio-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.ai-portfolio-item {
  min-height: 220px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(139,92,246,0.35), rgba(217,70,239,0.15)),
    rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
}

.ai-portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,16,0.78), transparent 58%);
  pointer-events: none;
}

.ai-portfolio-item .wp-block-image,
.ai-portfolio-item figure,
.ai-portfolio-item img {
  width: 100%;
  height: 100%;
}

.ai-portfolio-item img {
  object-fit: cover;
  display: block;
  min-height: 220px;
}

.ai-portfolio-large {
  grid-column: span 3;
  grid-row: span 2;
  min-height: 456px;
}

.ai-portfolio-wide {
  grid-column: span 3;
}

.ai-portfolio-small {
  grid-column: span 2;
}

.ai-portfolio-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 18px;
}

/* Pricing */

.ai-price {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #FFFFFF;
}

.ai-price span {
  font-size: 16px;
  color: #A1A1AA;
  font-weight: 600;
}

/* Forms */

input,
textarea,
select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  color: #FFFFFF;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 16px;
}

input::placeholder,
textarea::placeholder {
  color: #A1A1AA;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #A855F7;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16);
}

/* Footer */

.ai-footer {
  background: #050510;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* WordPress block fixes */

.wp-site-blocks {
  min-height: 100vh;
}

.wp-block-navigation__responsive-container.is-menu-open {
  background: #050510;
  color: #FFFFFF;
  padding: 24px;
}

.wp-block-navigation__responsive-container.is-menu-open a {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 800;
}

.wp-block-post-title a {
  color: #FFFFFF;
}

.wp-block-post-excerpt,
.wp-block-post-date,
.wp-block-post-author-name,
.wp-block-post-terms {
  color: #A1A1AA;
}

/* Responsive */

@media (max-width: 1100px) {
  .ai-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-portfolio-large,
  .ai-portfolio-wide,
  .ai-portfolio-small {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at 20% 5%, rgba(139, 92, 246, 0.28), transparent 34%),
      radial-gradient(circle at 80% 30%, rgba(217, 70, 239, 0.16), transparent 30%),
      #050510;
  }

  h1 {
    font-size: 44px !important;
    line-height: 1.05 !important;
  }

  h2 {
    font-size: 34px !important;
    line-height: 1.15 !important;
  }

  h3 {
    font-size: 24px !important;
  }

  p {
    font-size: 16px !important;
  }

  .wp-block-group {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .ai-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .ai-portfolio-item,
  .ai-portfolio-large,
  .ai-portfolio-wide,
  .ai-portfolio-small {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 38px !important;
  }

  h2 {
    font-size: 30px !important;
  }

  .wp-block-buttons {
    width: 100%;
  }

  .wp-block-button,
  .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}