/**
 * Club Page Styles
 *
 * @package    Tp_Woocommerce_Clubigo
 * @since      1.0.0
 */

/* ==========================================================================
   CSS Variables (will be overridden by inline styles)
   ========================================================================== */

.tp-clubigo-club-page {
    --tp-clubigo-primary: #0073aa;
    --tp-clubigo-secondary: #0f7baf;
    --tp-clubigo-bg: #ffffff;
    --tp-clubigo-text: #333333;
    --tp-clubigo-hero-bg: #f8f9fa;
    --tp-clubigo-heading-size: 28px;
    --tp-clubigo-text-size: 16px;
    --tp-clubigo-button-size: 16px;
}

/* ==========================================================================
   General Styles
   ========================================================================== */

.tp-clubigo-club-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    direction: rtl;
    color: var(--tp-clubigo-text);
    background-color: var(--tp-clubigo-bg);
    line-height: 1.6;
}

.tp-clubigo-club-page * {
    box-sizing: border-box;
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */

.tp-clubigo-hero-section {
    background: linear-gradient(135deg, var(--tp-clubigo-primary) 0%, var(--tp-clubigo-secondary) 100%);
    padding: 60px 20px;
    margin-bottom: 60px;
}

.tp-clubigo-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tp-clubigo-hero-image {
    text-align: center;
}

.tp-clubigo-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.tp-clubigo-hero-placeholder {
    width: 100%;
    height: 300px;
    background: var(--tp-clubigo-hero-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tp-clubigo-hero-placeholder::before {
    content: '🏪';
    font-size: 64px;
    opacity: 0.3;
}

.tp-clubigo-hero-content {
    color: white;
}

.tp-clubigo-welcome h1,
.tp-clubigo-guest-welcome h1 {
    font-size: var(--tp-clubigo-heading-size);
    margin: 0 0 20px 0;
    font-weight: bold;
}

.tp-clubigo-user-greeting {
    font-size: 20px;
    margin: 0 0 15px 0;
    opacity: 0.95;
}

.tp-clubigo-member-status {
    font-size: var(--tp-clubigo-text-size);
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.tp-clubigo-points-display {
    font-size: 18px;
    margin: 0 0 30px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tp-clubigo-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.tp-clubigo-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: var(--tp-clubigo-button-size);
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    min-width: 140px;
}

.tp-clubigo-btn-primary {
    background: white;
    color: var(--tp-clubigo-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tp-clubigo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--tp-clubigo-primary);
    text-decoration: none;
}

.tp-clubigo-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.tp-clubigo-btn-secondary:hover {
    background: white;
    color: var(--tp-clubigo-primary);
    text-decoration: none;
}

/* ==========================================================================
   Section 2: Benefits
   ========================================================================== */

.tp-clubigo-benefits-section {
    padding: 60px 20px;
    background: var(--tp-clubigo-bg);
}

.tp-clubigo-benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tp-clubigo-benefits-container h2 {
    font-size: var(--tp-clubigo-heading-size);
    color: var(--tp-clubigo-primary);
    margin: 0 0 40px 0 !important;
    font-weight: bold;
}

.tp-clubigo-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tp-clubigo-benefit-box {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.tp-clubigo-benefit-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.2);
    border-color: var(--tp-clubigo-primary);
}

.tp-clubigo-benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.tp-clubigo-benefit-title {
    font-size: 20px;
    color: var(--tp-clubigo-primary);
    margin: 0 0 10px !important;
    font-weight: bold;
}

.tp-clubigo-benefit-description {
    font-size: var(--tp-clubigo-text-size);
    color: var(--tp-clubigo-text);
    margin: 0 0 15px 0;
    line-height: 1.5;
}

/* Milestone-specific styles */
.tp-clubigo-milestone-box .tp-clubigo-benefit-description {
    margin-bottom: 20px;
}

.tp-clubigo-milestones-list {
    text-align: right;
}

.tp-clubigo-milestone-item {
    background: rgba(0, 115, 170, 0.1);
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    font-size: 14px;
    color: var(--tp-clubigo-primary);
    border-right: 3px solid var(--tp-clubigo-primary);
}

/* ==========================================================================
   Section 3: Information
   ========================================================================== */

.tp-clubigo-info-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tp-clubigo-info-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tp-clubigo-info-container h2 {
    font-size: var(--tp-clubigo-heading-size);
    color: var(--tp-clubigo-primary);
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    font-weight: bold;
}

.tp-clubigo-info-text {
    font-size: var(--tp-clubigo-text-size);
    color: var(--tp-clubigo-text);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tp-clubigo-info-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.tp-clubigo-step {
    text-align: center;
}
.tp-clubigo-step h4{
    margin: 0 !important;
    padding: 0 !important;
}

.tp-clubigo-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--tp-clubigo-primary) 0%, var(--tp-clubigo-secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.tp-clubigo-step h4 {
    font-size: 20px;
    color: var(--tp-clubigo-primary);
    margin: 0 0 10px 0;
    font-weight: bold;
}

.tp-clubigo-step p {
    font-size: var(--tp-clubigo-text-size);
    color: var(--tp-clubigo-text);
    margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .tp-clubigo-hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .tp-clubigo-hero-section {
        padding: 40px 20px;
    }
    
    .tp-clubigo-benefits-section,
    .tp-clubigo-info-section {
        padding: 40px 20px;
    }
    
    .tp-clubigo-benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tp-clubigo-info-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tp-clubigo-hero-buttons {
        justify-content: center;
    }
    
    .tp-clubigo-btn {
        min-width: 120px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .tp-clubigo-hero-section {
        padding: 30px 15px;
    }
    
    .tp-clubigo-benefits-section,
    .tp-clubigo-info-section {
        padding: 30px 15px;
    }
    
    .tp-clubigo-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tp-clubigo-btn {
        width: 100%;
        max-width: 250px;
    }
}
