/*
Theme Name: CiteCube
Description: Modern WordPress theme for AI visibility tracking platform. Features single-page homepage with full page template support for navigation and content management.
Version: 1.3
Author: CiteCube Team
*/

:root {
    --primary-color: #3B82F6;
    --secondary-color: #10B981;
    --dark-color: #1E293B;
    --light-gray: #F8FAFC;
    --medium-gray: #64748B;
    --gradient-1: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    --gradient-2: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="300" r="150" fill="url(%23a)"/><circle cx="800" cy="200" r="200" fill="url(%23a)"/><circle cx="600" cy="800" r="180" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.dashboard-mockup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
    transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

/* Stats Section */
.stats {
    background: var(--light-gray);
    padding: 5rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--medium-gray);
}

/* Problem Section */
.problem {
    padding: 6rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: 4rem;
}

.problem-visual {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 3rem;
    margin-top: 3rem;
}

.comparison-box {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.comparison-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.old-way {
    border-left: 4px solid #ef4444;
}

.new-way {
    border-left: 4px solid var(--secondary-color);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--light-gray);
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Use Cases Section */
.use-cases {
    padding: 6rem 0;
    background: white;
}

.use-case-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.use-case-icon i {
    font-size: 1.5rem;
    color: white;
}

.use-case-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--light-gray);
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    background: var(--gradient-1);
    color: white;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-period {
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.featured .plan-period {
    color: rgba(255, 255, 255, 0.8);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.featured .plan-features li::before {
    color: white;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .dashboard-mockup {
        transform: none;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading animations */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* App Integration Styles */
.app-button {
    background: var(--gradient-1);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

.app-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.app-button.small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.app-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.app-button:hover::before {
    left: 100%;
}

/* Health Monitor Styles */
.app-health-status {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 1rem;
}

.app-health-status.online {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.app-health-status.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.app-health-status.checking {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.app-health-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.app-health-indicator.online {
    background: #10b981;
    animation: pulse-green 2s infinite;
}

.app-health-indicator.offline {
    background: #ef4444;
}

.app-health-indicator.checking {
    background: #f59e0b;
    animation: pulse-yellow 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Admin Notice Styles */
.notice.app-integration {
    border-left: 4px solid var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.notice.app-integration.error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.notice.app-integration.success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

/* Navigation App Integration */
.navbar .app-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Mobile App Button Adjustments */
@media (max-width: 768px) {
    .navbar .app-button {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .app-health-status {
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .app-button.large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* App Integration Customizer Styles */
.customize-control-app_integration .customize-control-description {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

.customize-control-app_url input {
    font-family: monospace;
    font-size: 12px;
}

/* Dynamic URL Indicator */
.dynamic-url-indicator {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.dynamic-url-indicator::before {
    content: '🔗';
    margin-right: 0.25rem;
}

/* Shortcode Button Variations */
.citecube-app-shortcode {
    display: inline-block;
    margin: 0.5rem 0;
}

.citecube-app-shortcode.center {
    text-align: center;
    width: 100%;
}

.citecube-app-shortcode.full-width .app-button {
    width: 100%;
    text-align: center;
}

/* Theme Integration Indicators */
.theme-app-integration-active {
    position: relative;
}

.theme-app-integration-active::after {
    content: 'App Connected';
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Custom App CSS Variables for Customizer */
:root {
    --app-primary-color: var(--primary-color);
    --app-button-radius: 50px;
    --app-button-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    --app-transition: all 0.3s ease;
}

/* Customizer Color Overrides */
.custom-primary { color: var(--primary-color) !important; }
.custom-secondary { color: var(--secondary-color) !important; }
.custom-bg-primary { background: var(--primary-color) !important; }
.custom-bg-secondary { background: var(--secondary-color) !important; }
.custom-bg-gradient-1 { background: var(--gradient-1) !important; }
.custom-bg-gradient-2 { background: var(--gradient-2) !important; }

/* App Integration Custom Colors */
.custom-app-primary { 
    background: var(--app-primary-color) !important; 
    border-color: var(--app-primary-color) !important;
}

.custom-app-hover:hover {
    box-shadow: var(--app-button-shadow) !important;
    transition: var(--app-transition) !important;
}