/*
Theme Name: Astrobility
Description: Complete WordPress theme for integrated astrology website with cosmic design
Version: 2.0.0
Author: Astrobility Team
Text Domain: astrobility
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #6B46C1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5B21B6;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #6B46C1;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    color: #F59E0B;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-icon {
    margin-right: 0.5rem;
    font-size: 2rem;
}

/* Navigation Menu */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #F59E0B;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #F59E0B;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* CTA Button */
.header-cta {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #6B46C1;
    color: #6B46C1;
}

.btn-secondary:hover {
    background: #6B46C1;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #6B7280;
    line-height: 1.6;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Blog Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.blog-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.blog-post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

.blog-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-post-title a {
    color: #1F2937;
    text-decoration: none;
}

.blog-post-title a:hover {
    color: #6B46C1;
}

.blog-post-excerpt {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #6B46C1;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
}

.read-more:hover {
    color: #5B21B6;
}

/* Single Post Styles */
.single-post-header {
    background: linear-gradient(135deg, #6B46C1 0%, #4338CA 100%);
    padding: 120px 2rem 80px;
    text-align: center;
    color: white;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 2rem;
}

.single-post-content h2 {
    color: #1F2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post-content h3 {
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-post-content blockquote {
    background: #F3F4F6;
    border-left: 4px solid #6B46C1;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.single-post-content ul, .single-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #F59E0B;
}

.breadcrumbs span {
    margin: 0 8px;
    opacity: 0.6;
}

/* Page Styles */
.page-content h2 {
    color: #1F2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.page-content h3 {
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.page-content h4 {
    color: #4B5563;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.page-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.page-content blockquote {
    background: #F3F4F6;
    border-left: 4px solid #6B46C1;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
}

.page-content ul, 
.page-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.page-content a {
    color: #6B46C1;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: #5B21B6;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1F2937;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F3F4F6;
}

.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget ul li a {
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
}

.widget ul li a:hover {
    color: #6B46C1;
}

/* Search Form Styles */
.search-form {
    width: 100%;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #6B46C1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-numbers {
    background: #6B46C1;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    margin: 0 5px;
    font-weight: 500;
    display: inline-block;
}

.page-numbers:hover {
    background: #5B21B6;
    color: white;
}

.page-numbers.current {
    background: #F59E0B;
    color: white;
}

.page-numbers.prev,
.page-numbers.next {
    background: #374151;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
    background: #1F2937;
    color: white;
}

/* Footer Styles */
.site-footer {
    background: #1F2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: #F59E0B;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

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

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget ul li a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #F59E0B;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Newsletter Signup Styles */
.newsletter-signup {
    background: linear-gradient(135deg, #6B46C1, #4338CA);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    color: white;
    margin: 2rem 0;
}

.newsletter-signup h3 {
    color: #F59E0B;
    margin-bottom: 0.5rem;
}

.newsletter-signup p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.newsletter-form button {
    width: 100%;
    background: #F59E0B;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background: #D97706;
}

/* Testimonials Styles */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #F59E0B;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 1.125rem;
}

.testimonial-content {
    font-style: italic;
    color: #374151;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testimonial-name {
    font-weight: 600;
    color: #1F2937;
}

.testimonial-location {
    font-size: 0.875rem;
    color: #6B7280;
}

.testimonial-systems {
    font-size: 0.75rem;
    color: #6B46C1;
    background: #EDE9FE;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Error Page Styles */
.error-404-content {
    text-align: center;
    padding: 60px 20px;
}

.error-404-content h1 {
    font-size: 8rem;
    color: #6B46C1;
    margin-bottom: 1rem;
}

.error-404-content h2 {
    color: #1F2937;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.error-404-content p {
    color: #6B7280;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #6B46C1;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .widget,
    .testimonial-card {
        border: 1px solid currentColor;
    }
    
    .btn-primary {
        background: #000000;
        border: 2px solid #ffffff;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1F2937;
        --text-color: #F9FAFB;
        --card-bg: #374151;
        --border-color: #4B5563;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .card,
    .widget,
    .testimonial-card {
        background: var(--card-bg);
        color: var(--text-color);
    }
    
    .blog-post {
        background: var(--card-bg);
    }
    
    input,
    textarea {
        background: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-color);
    }
    
    input::placeholder,
    textarea::placeholder {
        color: #9CA3AF;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header-container {
        padding: 0 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .site-header {
        padding: 0.75rem 0;
    }
    
    .header-container {
        padding: 0 1rem;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-cta {
        margin-left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .single-post-title {
        font-size: 1.75rem;
    }
    
    .single-post-content {
        padding: 2rem 1rem;
    }
    
    .single-post-content p {
        font-size: 1rem;
    }
    
    .blog-container {
        padding: 2rem 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .single-post-header {
        padding: 100px 1rem 60px;
    }
    
    .single-post-title {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .widget {
        padding: 1.5rem;
    }
    
    .newsletter-signup {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .site-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .error-404-content h1 {
        font-size: 4rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .newsletter-signup {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .single-post-content {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    blockquote {
        border-left: 3px solid black;
        background: #f5f5f5;
    }
}