/**
 * Nottello Theme - Custom Styles
 * Additional styles and overrides
 * 
 * @package Nottello
 */

/* ==========================================================================
   Justified Text
   ========================================================================== */
p,
.nottello-hero__subtitle,
.nottello-section__subtitle,
.nottello-concept__text p,
.nottello-step__desc,
.nottello-benefit__desc,
.nottello-comparison__item span,
.nottello-quote p,
.nottello-contact__info > p,
.nottello-pricing__period,
.nottello-partner-tier__bonus,
.nottello-footer__brand p,
.nottello-post__excerpt,
.nottello-page__content {
    text-align: justify;
}

/* Keep centered elements centered */
.nottello-section__header,
.nottello-hero__content,
.nottello-cta,
.nottello-pricing,
.nottello-partners__cta,
.nottello-quote {
    text-align: center;
}

.nottello-section__header p,
.nottello-hero__subtitle,
.nottello-cta p,
.nottello-pricing__period,
.nottello-partners__cta p,
.nottello-quote p {
    text-align: center;
}

/* ==========================================================================
   Privacy Modal Content
   ========================================================================== */
.nottello-privacy-content h4 {
    color: var(--nottello-gold);
    font-size: 1.1rem;
    margin: 24px 0 12px;
    font-family: var(--font-display);
}

.nottello-privacy-content h4:first-child {
    margin-top: 0;
}

.nottello-privacy-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.nottello-privacy-content ul {
    list-style: none;
    padding: 0;
}

.nottello-privacy-content ul li {
    padding: 4px 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   Spinner Animation
   ========================================================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   Notification Styles
   ========================================================================== */
.nottello-notification {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nottello-notification p {
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Form Loading State
   ========================================================================== */
.nottello-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nottello-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Mobile Menu Toggle Animation
   ========================================================================== */
.nottello-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nottello-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nottello-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==========================================================================
   Enhanced Card Hover Effects
   ========================================================================== */
.nottello-card:hover .nottello-card__icon {
    transform: scale(1.1);
}

.nottello-card__icon {
    transition: transform 0.3s ease;
}

/* ==========================================================================
   Hero Logo Animation
   ========================================================================== */
.nottello-hero__logo {
    animation: nottelloPulse 3s ease-in-out infinite;
}

/* ==========================================================================
   Pricing Card Shine Effect
   ========================================================================== */
.nottello-pricing__card {
    position: relative;
    overflow: hidden;
}

.nottello-pricing__card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 60%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ==========================================================================
   Partner Tier Badges Enhancement
   ========================================================================== */
.nottello-partner-tier:nth-child(1):hover {
    border-color: #fb923c;
}

.nottello-partner-tier:nth-child(2):hover {
    border-color: #d1d5db;
}

.nottello-partner-tier:nth-child(3):hover {
    border-color: var(--nottello-gold);
}

.nottello-partner-tier:nth-child(4):hover {
    border-color: #c084fc;
}

/* ==========================================================================
   Scroll Progress Indicator (Optional)
   ========================================================================== */
.nottello-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-gold);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ==========================================================================
   Custom Selection Colors
   ========================================================================== */
::selection {
    background: var(--nottello-gold);
    color: var(--bg-dark);
}

::-moz-selection {
    background: var(--nottello-gold);
    color: var(--bg-dark);
}

/* ==========================================================================
   Smooth Image Loading
   ========================================================================== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .nottello-header,
    .nottello-footer,
    .nottello-bg-effects,
    .nottello-modal,
    .nottello-scroll-indicator {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .nottello-section {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .nottello-bg-glow,
    .nottello-star {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-light: rgba(255, 255, 255, 0.3);
        --text-secondary: rgba(255, 255, 255, 0.9);
    }
    
    .nottello-btn {
        border-width: 2px;
    }
}

/* ==========================================================================
   Focus Visible States
   ========================================================================== */
.nottello-btn:focus-visible,
.nottello-form-input:focus-visible,
.nottello-form-select:focus-visible,
.nottello-form-textarea:focus-visible {
    outline: 2px solid var(--nottello-gold);
    outline-offset: 2px;
}

.nottello-nav__link:focus-visible {
    outline: 2px solid var(--nottello-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ==========================================================================
   WordPress Admin Bar Compatibility
   ========================================================================== */
body.admin-bar .nottello-header {
    top: 32px;
}

body.admin-bar .nottello-mobile-menu {
    top: 112px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .nottello-header {
        top: 46px;
    }
    
    body.admin-bar .nottello-mobile-menu {
        top: 126px;
    }
}

/* ==========================================================================
   WordPress Block Editor Compatibility
   ========================================================================== */
.wp-block {
    max-width: var(--container-width);
}

.wp-block[data-align="wide"] {
    max-width: calc(var(--container-width) + 200px);
}

.wp-block[data-align="full"] {
    max-width: none;
}
