/* 
 * Competition Single Page Styles
 * Dark theme competition page with custom styling
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Theme Colors */
    --osp-box-background: #07132aad;
    --osp-box-background-solid: #07132a;
    --osp-border-color: #3a486359;
    --osp-border-radius: 12px;
    --osp-border-width: 2px;
    --osp-divider-color: #3a4863ba;
    --osp-primary-color: #1aa0ee;
    --osp-secondary-color: #0056b3;
    --osp-input-background: #19202e;
    --osp-input-border-color: #ffffff1f;
    --osp-prize-gold: #ffd700;
    --osp-prize-silver: #c0c0c0;
    --osp-prize-bronze: #cd7f32;

    /* Typography */
    --osp-heading-font: 'Oswald', sans-serif;
    --osp-body-font: 'DM Sans', sans-serif;

    /* Spacing */
    --osp-section-padding: 64px 32px;
    --osp-container-max-width: 1200px;

    /* Button Gradient */
    --osp-button-gradient: linear-gradient(180deg, #bdeeff 0%, #4bd2ff 100%);
    --osp-button-text-color: #010101;
    --osp-button-border: 4px solid rgba(255, 255, 255, 0.35);
    --osp-button-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
}

/* Main Container */
.osp-competition-main {
    min-height: 100vh;
    background-color: var(--osp-box-background-solid);
    font-family: var(--osp-body-font);
    color: #ffffff;
}

/* Shared Section Styles */
.osp-section {
    /* Full-width sections for backgrounds */
    width: 100%;
}

/* Shared Container Styles */
.osp-container {
    max-width: var(--osp-container-max-width);
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

/* Logos */
.osp-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0 16px 0;
}

.osp-logo-main,
.osp-logo-affiliate {
    display: flex;
    align-items: center;
}

.osp-logo-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.osp-logo-link:hover {
    opacity: 0.8;
}

.osp-main-logo {
    height: 30px;
    width: auto;
}

.osp-affiliate-logo {
    width: auto;
    height: auto;
}

.osp-logo-separator {
    font-family: var(--osp-heading-font);
    font-size: 22px;
    font-weight: 400;
    color: #ffffffab;
}

.osp-affiliate-text {
    font-family: var(--osp-heading-font);
     font-size: 20px;
    font-weight: 700;
    color: #ffffffeb;
}

/* Hero Section */
.osp-hero-section {
    background-image: url('https://onestopprop.com/wp-content/uploads/2025/06/Navbar-3-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero Background Images */
.osp-hero-section::before,
.osp-hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 400px;
    height: 300px;
    background-image: url('https://onestopprop.com/wp-content/uploads/2025/08/cup.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.osp-hero-section::before {
    left: -50px;
    transform: translateY(-50%) rotate(-15deg);
}

.osp-hero-section::after {
    right: -50px;
    transform: translateY(-50%) rotate(20deg);
}

/* Hero Content Wrapper */
.osp-hero-content {
    padding-top: 64px;
    padding-bottom: 32px;
    position: relative;
    z-index: 2;
}

.osp-competition-title {
    font-family: var(--osp-heading-font);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    text-transform: uppercase;
}

.osp-competition-subtitle {
    font-family: var(--osp-body-font);
    font-size: 20px;
    font-weight: 400;
    color: #ffffffb8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.osp-cta-button {
    display: inline-block;
    color: var(--osp-button-text-color);
    font-size: 18px;
    font-weight: 700;
    font-family: var(--osp-body-font);
    text-transform: capitalize;
    padding: 26px 32px;
    border: var(--osp-button-border);
    border-radius: 15px;
    background-image: var(--osp-button-gradient);
    box-shadow: var(--osp-button-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.osp-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.osp-cta-button:active {
    transform: translateY(0);
}

/* Countdown Section */
.osp-countdown-section {
    padding: var(--osp-section-padding);
    text-align: center;
    background-color: var(--osp-box-background-solid);
}

.osp-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.osp-timer-unit {
    background: var(--osp-box-background);
    border: var(--osp-border-width) solid var(--osp-border-color);
    border-radius: var(--osp-border-radius);
    padding: 24px 24px;
    min-width: 100px;
}

.osp-timer-value {
    display: block;
    font-family: var(--osp-heading-font);
    font-size: 40px;
    font-weight: 700;
    color: var(--osp-primary-color);
    line-height: 1;
}

.osp-timer-label {
    display: block;
    font-family: var(--osp-body-font);
    font-size: 14px;
    font-weight: 600;
    color: #cccccc;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.osp-countdown-caption {
    font-family: var(--osp-body-font);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.osp-countdown-end-date {
    font-family: var(--osp-body-font);
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Prizes Section */
.osp-prizes-section {
    padding: var(--osp-section-padding);
    text-align: center;
    background-image: url('https://onestopprop.com/wp-content/uploads/2025/06/Navbar-7.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.osp-prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
}

.osp-prize-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--osp-border-radius);
    padding: 32px 24px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.osp-prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

/* Prize Card Rank Text Colors */
.osp-prize-card:nth-child(1) .osp-prize-rank-text {
    color: var(--osp-prize-gold);
}

.osp-prize-card:nth-child(2) .osp-prize-rank-text {
    color: var(--osp-prize-silver);
}

.osp-prize-card:nth-child(3) .osp-prize-rank-text {
    color: var(--osp-prize-bronze);
}

.osp-prize-card:nth-child(n+4) .osp-prize-rank-text {
    color: #f0f0f0;
}

.osp-prize-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 16px 0;
    padding: 8px 16px;
    border-radius: 8px;
    background: transparent;
}

.osp-prize-cup {
    width: 32px;
    height: 32px;
}

.osp-prize-rank-text {
    font-family: var(--osp-heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--osp-primary-color);
    text-transform: uppercase;
}

.osp-prize-name {
    font-family: var(--osp-body-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

/* Prize Name Colors Based on Position */
.osp-prize-card:nth-child(1) .osp-prize-name {
    color: var(--osp-prize-gold);
}

.osp-prize-card:nth-child(2) .osp-prize-name {
    color: var(--osp-prize-silver);
}

.osp-prize-card:nth-child(3) .osp-prize-name {
    color: var(--osp-prize-bronze);
}

.osp-prize-card:nth-child(n+4) .osp-prize-name {
    color: #f0f0f0;
}

/* Competition Info Section */
.osp-competition-info {
    padding: var(--osp-section-padding);
    text-align: center;
    background-color: var(--osp-box-background-solid);
}

.osp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.osp-info-card {
    background: var(--osp-box-background);
    border: var(--osp-border-width) solid var(--osp-border-color);
    border-radius: var(--osp-border-radius);
    padding: 40px 32px;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.osp-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.osp-info-title {
    font-family: var(--osp-heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--osp-primary-color);
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.osp-info-description {
    font-family: var(--osp-body-font);
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.osp-info-note {
    font-family: var(--osp-body-font);
    font-size: 14px;
    color: #cccccc;
    font-style: italic;
    margin: 0;
}

.osp-info-details p {
    font-family: var(--osp-body-font);
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.osp-info-details p:last-child {
    margin-bottom: 0;
}

.osp-info-details strong {
    color: var(--osp-primary-color);
}

/* How It Works Section */
.osp-how-it-works {
    padding: var(--osp-section-padding);
    text-align: center;
    background-color: var(--osp-box-background);
}

.osp-section-title {
    font-family: var(--osp-heading-font);
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 48px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.osp-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.osp-step-item {
    background: var(--osp-box-background);
    border: var(--osp-border-width) solid var(--osp-border-color);
    border-radius: var(--osp-border-radius);
    padding: 40px 32px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.osp-step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.osp-step-title {
    font-family: var(--osp-heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--osp-primary-color);
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.osp-step-description {
    font-family: var(--osp-body-font);
    font-size: 18px;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
}

/* Final CTA Section */
.osp-final-cta {
    padding: var(--osp-section-padding);
    text-align: center;
    background-color: var(--osp-box-background);
}

/* Popup Styles */
.osp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.osp-popup-overlay.osp-popup-open {
    opacity: 1;
    visibility: visible;
}

.osp-popup-container {
    background: var(--osp-box-background-solid);
    border: var(--osp-border-width) solid var(--osp-border-color);
    border-radius: var(--osp-border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.osp-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.osp-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--osp-primary-color);
}

.osp-popup-content {
       padding: 26px 50px;
}

.osp-popup-title {
    font-family: var(--osp-heading-font);
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 32px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.osp-popup-info {
    font-family: var(--osp-body-font);
    font-size: 16px;
    color: #ffffffbf;
    line-height: 1.5;
    text-align: center;
}

.osp-popup-disclaimer {
    font-family: var(--osp-body-font);
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
    margin: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--osp-border-radius);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --osp-section-padding: 48px 16px;
    }

    .osp-container {
        padding: 0 16px;
    }

    .osp-logos {
        gap: 10px;
    }

    .osp-hero-content {
        padding-top: 32px;
        padding-bottom: 16px;
    }
    
    /* Hide right image on mobile, keep only left */
    .osp-hero-section::after {
        display: none;
    }
    
    .osp-hero-section::before {
        left: 50%;
        transform: translateX(-50%) translateY(-50%) rotate(-10deg);
        width: 250px;
        height: 200px;
    }

    .osp-competition-subtitle {
        font-size: 18px;
    }

    .osp-cta-button {
        font-size: 16px;
        padding: 22px 29px;
    }

    .osp-countdown-timer {
        gap: 16px;
    }

    .osp-timer-unit {
        min-width: 80px;
        padding: 24px 16px;
    }

    .osp-timer-value {
        font-size: 28px;
    }

    .osp-prizes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .osp-info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .osp-steps-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .osp-main-logo {
        height: 20px;
    }
    .osp-logo-separator {
        font-size: 18px;
    }

    .osp-affiliate-text {
        font-size: 16px;
    }

    .osp-timer-unit {
        min-width: 70px;
        padding: 20px 12px;
    }

    .osp-timer-value {
        font-size: 24px;
    }

    .osp-prize-card {
        padding: 24px 20px;
    }

    .osp-prize-rank {
        font-size: 20px;
        padding: 6px 12px;
    }

    .osp-prize-name {
        font-size: 16px;
    }

    .osp-prize-cup {
        width: 28px;
        height: 28px;
    }

    .osp-prize-rank-text {
        font-size: 20px;
    }

    .osp-info-grid {
        grid-template-columns: 1fr;
    }

    .osp-info-card {
        padding: 24px 20px;
    }

    .osp-info-title {
        font-size: 20px;
    }

    .osp-info-description,
    .osp-info-details p {
        font-size: 14px;
    }

    /* Popup Mobile Styles */
    .osp-popup-overlay {
        padding: 16px;
    }

    .osp-popup-content {
        padding: 20px 24px;
    }

    .osp-popup-title {
        font-size: 24px;
    }

    .osp-popup-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    .osp-countdown-caption {
        font-size: 15px;
    }

    .osp-countdown-end-date {
        font-size: 14px;
    }

    .osp-step-description {
        font-size: 16px;
    }
}