/**
 * The Rise Theme - Custom CSS
 * Users can override styles here without modifying style.css
 * @package TheRise
 */

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

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

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,229,160,0.4); }
    70%  { box-shadow: 0 0 0 12px rgba(0,229,160,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,229,160,0); }
}

/* Hero entrance animation */
.hero-content {
    animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-artist-image {
    animation: fadeIn 1.2s ease 0.5s both;
}

/* Countdown number pop on change */
.countdown-number {
    transition: transform 0.15s ease;
}

/* ============================================================
   ELEMENTOR SECTION OVERRIDES
   ============================================================ */

/* Remove default Elementor container padding for full-bleed sections */
.elementor-section.tr-full-bleed > .elementor-container {
    max-width: 100%;
    padding: 0;
}

/* The Rise Custom Elementor Colors */
.elementor-widget-the_rise_countdown .countdown-number {
    color: var(--tr-white);
}

/* ============================================================
   ADMIN BAR COMPENSATION
   ============================================================ */

.admin-bar #site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #site-header {
        top: 46px;
    }
}

/* ============================================================
   WOOCOMMERCE COMPATIBILITY (if WooCommerce installed)
   ============================================================ */

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--tr-teal);
    color: var(--tr-dark);
    font-family: var(--tr-font-head);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--tr-teal-dark);
    color: var(--tr-dark);
}

/* ============================================================
   SCROLL REVEAL (add class via JS for entrance animations)
   ============================================================ */

.tr-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.tr-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.tr-reveal-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tr-reveal-children.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.tr-reveal-children.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.tr-reveal-children.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.tr-reveal-children.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.tr-reveal-children.revealed > * { opacity: 1; transform: none; }

/* ============================================================
   SINGLE POST / PAGE STYLES
   ============================================================ */

.page-template-default .site-main {
    padding: 120px 0 80px;
}

.entry-title {
    font-family: var(--tr-font-head);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    color: var(--tr-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    max-width: 720px;
}

.entry-content h2 { font-size: 28px; margin: 36px 0 16px; color: var(--tr-dark); }
.entry-content h3 { font-size: 22px; margin: 28px 0 14px; color: var(--tr-dark); }
.entry-content p  { margin-bottom: 20px; }

.entry-content a {
    color: var(--tr-teal-dark);
    border-bottom: 1px solid var(--tr-teal);
}

/* ============================================================
   404 PAGE
   ============================================================ */

.error-404 {
    text-align: center;
    padding: 160px 30px;
}

.error-404 .error-code {
    font-family: var(--tr-font-head);
    font-size: 160px;
    font-weight: 900;
    color: var(--tr-teal);
    line-height: 1;
    letter-spacing: -0.05em;
    opacity: 0.3;
}

.error-404 h2 {
    font-size: 32px;
    margin: -20px 0 20px;
    color: var(--tr-dark);
}
