/* ============================================================
   Shift Squad Theme — Custom CSS
   Converted from Tailwind/React design system
   ============================================================ */

/* ----------------------------------------------------------
   0. CSS Variables (Design Tokens)
   ---------------------------------------------------------- */
:root {
    /* Brand colors */
    --ss-gold:           hsl(42, 100%, 67%);
    --ss-gold-muted:     hsl(42, 80%, 75%);
    --ss-navy:           hsl(217, 30%, 18%);
    --ss-navy-light:     hsl(217, 30%, 22%);
    --ss-navy-lighter:   hsl(217, 30%, 28%);
    --ss-navy-card:      hsl(213, 50%, 16%);

    /* Text */
    --ss-white:          #ffffff;
    --ss-muted:          hsl(0, 0%, 70%);

    /* Functional */
    --ss-border:         hsl(213, 30%, 30%);
    --ss-input-bg:       hsl(213, 30%, 25%);
    --ss-radius:         0.75rem;

    /* Typography */
    --ss-font-heading:   'Montserrat', system-ui, -apple-system, sans-serif;
    --ss-font-body:      'Cormorant Garamond', serif;

    /* Shadows */
    --ss-shadow-glow:    0 0 40px hsla(42, 100%, 67%, 0.3);
    --ss-shadow-elegant: 0 10px 30px -10px hsla(0, 0%, 0%, 0.5);
    --ss-shadow-card:    0 4px 20px hsla(0, 0%, 0%, 0.3);
}

/* ----------------------------------------------------------
   1. Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--ss-font-body);
    background: var(--ss-navy);
    color: var(--ss-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--ss-font-heading); font-weight: 700; line-height: 1.2; }
a { color: var(--ss-gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ----------------------------------------------------------
   2. Layout Utilities
   ---------------------------------------------------------- */
.ss-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.ss-container-sm { max-width: 896px; }
.ss-container-lg { max-width: 1152px; }

.ss-section { padding: 5rem 1.5rem; }

.ss-text-center { text-align: center; }
.ss-text-white  { color: var(--ss-white); }
.ss-text-muted  { color: var(--ss-muted); }
.ss-text-sm     { font-size: 0.875rem; }
.ss-text-lg     { font-size: 1.125rem; }
.ss-text-xl     { font-size: 1.25rem; }
.ss-text-2xl    { font-size: 1.5rem; }
.ss-text-3xl    { font-size: 1.875rem; }
.ss-font-bold   { font-weight: 700; }
.ss-leading-relaxed { line-height: 1.8; }

.ss-gold { color: var(--ss-gold); }

.ss-mb-4  { margin-bottom: 1rem; }
.ss-mb-6  { margin-bottom: 1.5rem; }
.ss-mb-8  { margin-bottom: 2rem; }
.ss-mb-12 { margin-bottom: 3rem; }
.ss-mb-16 { margin-bottom: 4rem; }
.ss-mt-8  { margin-top: 2rem; }
.ss-mt-20 { margin-top: 5rem; }

/* Background variants */
.ss-bg-subtle {
    background: linear-gradient(180deg, var(--ss-navy), var(--ss-navy-light));
}
.ss-bg-navy-light { background: var(--ss-navy-light); }

/* ----------------------------------------------------------
   3. Section Title
   ---------------------------------------------------------- */
.ss-section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .ss-section-title { font-size: 3rem; }
}

/* ----------------------------------------------------------
   4. Card
   ---------------------------------------------------------- */
.ss-card {
    background: hsla(213, 50%, 16%, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--ss-shadow-card);
    border: 1px solid var(--ss-navy-lighter);
}
@media (min-width: 768px) {
    .ss-card { padding: 3rem; }
}
.ss-card-rounded { border-radius: 1.5rem; }

/* ----------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------- */
.ss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--ss-font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.875rem 2rem;
    border-radius: var(--ss-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.ss-btn:hover { text-decoration: none; }

.ss-btn-gold {
    background: linear-gradient(135deg, var(--ss-gold), var(--ss-gold-muted));
    color: var(--ss-navy);
}
.ss-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px hsla(42, 100%, 67%, 0.4);
    color: var(--ss-navy);
}

.ss-btn-full { width: 100%; }

.ss-btn-icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

/* ----------------------------------------------------------
   6. Hero Section
   ---------------------------------------------------------- */
.ss-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ss-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ss-navy), var(--ss-navy));
}

.ss-hero-float {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: ss-float 6s ease-in-out infinite;
}
.ss-hero-float-1 {
    top: 5rem; left: 2.5rem;
    width: 5rem; height: 5rem;
    background: hsla(42, 100%, 67%, 0.2);
}
.ss-hero-float-2 {
    bottom: 8rem; right: 4rem;
    width: 8rem; height: 8rem;
    background: hsla(42, 100%, 67%, 0.1);
    filter: blur(60px);
    animation-delay: 2s;
}

.ss-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.ss-hero-logo { margin-bottom: 0.75rem; }
.ss-hero-logo-wrap { display: inline-block; position: relative; }
.ss-hero-logo-img {
    height: 24rem;
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 25px 25px rgba(0,0,0,0.3));
}
@media (min-width: 768px) { .ss-hero-logo-img { height: 32rem; } }
@media (min-width: 1024px) { .ss-hero-logo-img { height: 40rem; } }

.ss-hero-logo-glow {
    position: absolute;
    inset: 0;
    background: hsla(217, 30%, 18%, 0.2);
    filter: blur(48px);
    border-radius: 50%;
    transform: scale(1.5);
    z-index: -1;
}

.ss-hero-text { max-width: 56rem; margin: 0 auto 4rem; }

.ss-hero-title {
    font-size: 1.875rem;
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) { .ss-hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .ss-hero-title { font-size: 3.75rem; } }

.ss-hero-host { display: inline-block; position: relative; }
.ss-hero-host-img {
    border-radius: 1.5rem;
    box-shadow: var(--ss-shadow-elegant);
    width: 16rem;
    object-fit: cover;
    margin: 0 auto;
}
@media (min-width: 768px) { .ss-hero-host-img { width: 20rem; } }
@media (min-width: 1024px) { .ss-hero-host-img { width: 24rem; } }

.ss-hero-host-overlay {
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: linear-gradient(to top right, hsla(217, 30%, 18%, 0.2), transparent);
}

/* Scroll indicator */
.ss-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.ss-scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid var(--ss-gold);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
}
.ss-scroll-dot {
    width: 0.25rem;
    height: 0.75rem;
    background: var(--ss-gold);
    border-radius: 9999px;
    margin-top: 0.5rem;
    animation: ss-bounce 1.5s infinite;
}

/* ----------------------------------------------------------
   7. Tags (About Podcast)
   ---------------------------------------------------------- */
.ss-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.ss-tag {
    background: hsla(42, 100%, 67%, 0.1);
    border: 1px solid hsla(42, 100%, 67%, 0.3);
    color: var(--ss-gold);
    font-family: var(--ss-font-heading);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
}

/* ----------------------------------------------------------
   8. Latest Episode
   ---------------------------------------------------------- */
.ss-episode-cover {
    position: relative;
    max-width: 28rem;
    margin: 0 auto 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--ss-shadow-glow);
    aspect-ratio: 1 / 1;
}
.ss-episode-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ss-episode-overlay {
    position: absolute;
    inset: 0;
    background: hsla(217, 30%, 18%, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ss-episode-coming {
    font-size: 2.5rem;
    color: var(--ss-gold);
    margin-bottom: 1rem;
}
@media (min-width: 768px) { .ss-episode-coming { font-size: 3rem; } }

/* ----------------------------------------------------------
   9. Subscribe Platforms
   ---------------------------------------------------------- */
.ss-platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .ss-platforms-grid { grid-template-columns: repeat(3, 1fr); }
}

.ss-platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 4rem;
    background: hsla(213, 50%, 16%, 0.5);
    border: 1px solid var(--ss-navy-lighter);
    border-radius: var(--ss-radius);
    color: var(--ss-white);
    font-family: var(--ss-font-heading);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}
.ss-platform-btn:hover {
    background: hsla(42, 100%, 67%, 0.2);
    border-color: var(--ss-gold);
    transform: scale(1.05);
    text-decoration: none;
    color: var(--ss-white);
}
.ss-platform-emoji { font-size: 1.5rem; }

/* ----------------------------------------------------------
   10. Newsletter Form
   ---------------------------------------------------------- */
.ss-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .ss-newsletter-form { flex-direction: row; }
}

/* ----------------------------------------------------------
   11. About Host
   ---------------------------------------------------------- */
.ss-host-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .ss-host-grid { grid-template-columns: 1fr 1fr; }
}

.ss-host-photo-wrap { position: relative; }
.ss-host-photo {
    border-radius: 1.5rem;
    box-shadow: var(--ss-shadow-glow);
    width: 100%;
    object-fit: contain;
}
.ss-host-photo-overlay {
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: linear-gradient(to bottom right, hsla(42, 100%, 67%, 0.2), transparent);
}
.ss-host-deco {
    position: absolute;
    border-radius: 50%;
}
.ss-host-deco-1 {
    top: -1rem; right: -1rem;
    width: 5rem; height: 5rem;
    background: hsla(42, 100%, 67%, 0.2);
    filter: blur(20px);
}
.ss-host-deco-2 {
    bottom: -2rem; left: -2rem;
    width: 6rem; height: 6rem;
    background: hsla(42, 100%, 67%, 0.1);
    filter: blur(40px);
}

.ss-host-name {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .ss-host-name { font-size: 2.25rem; } }

.ss-host-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.125rem;
    color: var(--ss-muted);
    line-height: 1.8;
}

.ss-host-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}
.ss-host-stat {
    background: hsla(42, 100%, 67%, 0.1);
    padding: 1rem;
    border-radius: var(--ss-radius);
    border: 1px solid hsla(42, 100%, 67%, 0.3);
}
.ss-host-stat-number {
    font-family: var(--ss-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ss-gold);
}
.ss-host-stat-label {
    font-size: 0.875rem;
    color: var(--ss-muted);
}

/* ----------------------------------------------------------
   12. Quotes / Testimonials
   ---------------------------------------------------------- */
.ss-quotes-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 5rem;
}
@media (min-width: 768px) {
    .ss-quotes-grid { grid-template-columns: repeat(3, 1fr); }
}

.ss-quote-card {
    background: hsla(213, 50%, 16%, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--ss-shadow-card);
    border: 1px solid var(--ss-navy-lighter);
    transition: all 0.3s ease;
}
.ss-quote-card:hover {
    box-shadow: var(--ss-shadow-glow);
    transform: scale(1.05);
}

.ss-quote-mark {
    color: var(--ss-gold);
    font-size: 4rem;
    font-family: serif;
    line-height: 1;
    margin-bottom: 1rem;
}
.ss-quote-text {
    font-size: 1.125rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.ss-quote-source {
    color: var(--ss-gold);
    font-family: var(--ss-font-heading);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ----------------------------------------------------------
   13. Stats
   ---------------------------------------------------------- */
.ss-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) {
    .ss-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.ss-stat { text-align: center; }
.ss-stat-number {
    font-family: var(--ss-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ss-gold);
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .ss-stat-number { font-size: 3rem; } }

.ss-stat-label {
    color: var(--ss-muted);
    font-family: var(--ss-font-heading);
    font-weight: 500;
}

/* ----------------------------------------------------------
   14. Forms
   ---------------------------------------------------------- */
.ss-form-group { margin-bottom: 1.5rem; }

.ss-label {
    display: block;
    font-family: var(--ss-font-heading);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--ss-white);
}

.ss-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--ss-navy-light);
    border: 1px solid var(--ss-navy-lighter);
    border-radius: var(--ss-radius);
    color: var(--ss-white);
    font-family: var(--ss-font-body);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ss-input::placeholder { color: var(--ss-muted); }
.ss-input:focus {
    outline: none;
    border-color: var(--ss-gold);
    box-shadow: 0 0 0 3px hsla(42, 100%, 67%, 0.25);
}

.ss-textarea { resize: vertical; }

.ss-form-message {
    margin-top: 1rem;
    text-align: center;
    font-family: var(--ss-font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
}
.ss-form-success { color: #4ade80; }
.ss-form-error   { color: #f87171; }

/* ----------------------------------------------------------
   15. Footer
   ---------------------------------------------------------- */
.ss-footer {
    padding: 3rem 1.5rem;
    background: var(--ss-navy);
}

.ss-footer-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .ss-footer-grid {
        grid-template-columns: 1fr auto 1fr;
        text-align: left;
    }
}

.ss-footer-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ss-footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.ss-social-link {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(42, 100%, 67%, 0.1);
    border-radius: 50%;
    color: var(--ss-gold);
    transition: all 0.3s ease;
}
.ss-social-link:hover {
    background: var(--ss-gold);
    color: var(--ss-navy);
    transform: scale(1.1);
}
.ss-social-link svg { stroke: currentColor; }

.ss-footer-copy { text-align: center; }
@media (min-width: 768px) { .ss-footer-copy { text-align: right; } }

.ss-footer-divider {
    border-top: 1px solid var(--ss-navy-lighter);
    margin-top: 2rem;
    padding-top: 2rem;
}

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

@keyframes ss-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

@keyframes ss-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ss-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: ss-fade-in 0.6s ease-out forwards;
}
.ss-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------
   17. Page & Single templates
   ---------------------------------------------------------- */
.ss-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}
.ss-page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.ss-page-content p,
.ss-page-content li {
    font-size: 1.125rem;
    color: var(--ss-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.ss-page-content a { color: var(--ss-gold); }
.ss-page-content img {
    border-radius: 1rem;
    margin: 2rem 0;
}

/* WordPress specific */
.wp-block-image { margin: 2rem 0; }
.wp-block-image img { border-radius: 1rem; }
.aligncenter { text-align: center; }
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* Admin bar fix */
body.admin-bar .ss-hero { min-height: calc(100vh - 32px); }
@media (max-width: 782px) {
    body.admin-bar .ss-hero { min-height: calc(100vh - 46px); }
}

/* ----------------------------------------------------------
   18. Blog / Archive styles
   ---------------------------------------------------------- */
.ss-posts-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .ss-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .ss-posts-grid { grid-template-columns: repeat(3, 1fr); }
}

.ss-post-card {
    background: hsla(213, 50%, 16%, 0.5);
    border: 1px solid var(--ss-navy-lighter);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.ss-post-card:hover {
    box-shadow: var(--ss-shadow-glow);
    transform: translateY(-4px);
}

.ss-post-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.ss-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.ss-post-card:hover .ss-post-card-thumb img {
    transform: scale(1.05);
}

.ss-post-card-body { padding: 1.5rem; }
.ss-post-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.ss-post-card-title a {
    color: var(--ss-white);
    text-decoration: none;
}
.ss-post-card-title a:hover { color: var(--ss-gold); }
.ss-post-card-excerpt {
    color: var(--ss-muted);
    font-size: 1rem;
    line-height: 1.7;
}
.ss-post-card-meta {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--ss-muted);
    font-family: var(--ss-font-heading);
}

/* Pagination */
.ss-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.ss-pagination a,
.ss-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: var(--ss-radius);
    font-family: var(--ss-font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid var(--ss-navy-lighter);
    color: var(--ss-white);
    text-decoration: none;
    transition: all 0.2s ease;
}
.ss-pagination a:hover {
    background: hsla(42, 100%, 67%, 0.2);
    border-color: var(--ss-gold);
}
.ss-pagination .current {
    background: var(--ss-gold);
    color: var(--ss-navy);
    border-color: var(--ss-gold);
}
