/*
Theme Name: Thinklet
Theme URI: https://thinklet.io
Author: Thinklet Labs
Author URI: https://thinklet.io
Description: A modern, vibrant theme for the Thinklet.io platform - the world's first social, no-code, text-to-app platform.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thinklet
Tags: one-column, custom-colors, custom-menu, editor-style, featured-images, full-width-template, theme-options
*/

/* Reset & Base Styles */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Diagonal Section */
.diagonal-section {
  position: relative;
  overflow: hidden;
}

.diagonal-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 200px;
  background: inherit;
  transform: skewY(-3deg);
  transform-origin: top left;
}

/* Card Hover Effect */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-12px) rotate(-1deg);
  box-shadow: 0 30px 80px -10px rgba(0,0,0,0.2);
}

/* Section Appear Animation */
.section-appear {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-appear.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Text Huge */
.text-huge {
  font-size: clamp(2.5rem, 10vw, 8rem);
  line-height: 0.9;
}

/* Glass Effect */
.glass-strong {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Stagger Animation */
.hero-stagger > * {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.3s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.5s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.7s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.9s; }
.hero-stagger > *:nth-child(6) { animation-delay: 1.1s; }

/* Aurora Background */
.aurora {
  background: 
    radial-gradient(ellipse at top, rgba(251, 146, 60, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.3) 0%, transparent 50%);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .text-huge { 
    font-size: clamp(2rem, 8vw, 4rem); 
  }
}

/* WordPress Core Compatibility */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.sticky {
  /* Styles for sticky posts */
}

.gallery-caption {
  display: block;
}

/* Screen Reader Text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Prose/Content Styling for Pages and Posts */
.prose {
  color: #334155;
  max-width: 65ch;
}

.prose h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  margin-top: 0;
  line-height: 1.1;
  color: #0f172a;
}

.prose h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #0f172a;
}

.prose h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: #0f172a;
}

.prose h4 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #0f172a;
}

.prose p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: #475569;
}

.prose a {
  color: #f97316;
  font-weight: 600;
  text-decoration: none;
}

.prose a:hover {
  color: #ec4899;
}

.prose strong {
  color: #0f172a;
  font-weight: 700;
}

.prose ul,
.prose ol {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #475569;
}

.prose li p {
  margin: 0.5rem 0;
}

.prose blockquote {
  border-left: 4px solid #f97316;
  padding-left: 1.5rem;
  font-style: italic;
  color: #475569;
  margin: 1.5rem 0;
  font-size: 1.125rem;
}

.prose img {
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.prose code {
  color: #ec4899;
  background-color: #fdf2f8;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose code::before,
.prose code::after {
  content: none;
}

.prose pre {
  background-color: #0f172a;
  color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.prose pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.875rem;
}

.prose hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 3rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.prose th {
  background-color: #f1f5f9;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

/* Prose size modifiers */
.prose-lg {
  font-size: 1.125rem;
}

.prose-lg h2 {
  font-size: 2.5rem;
  margin-top: 3rem;
}

.prose-lg h3 {
  font-size: 1.875rem;
  margin-top: 2.5rem;
}

.prose-lg h4 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.prose-lg p,
.prose-lg li {
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Max width none utility */
.max-w-none {
  max-width: none;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}