/* Upwork-Inspired Membership Plan Styles - Exact Match */

/* Color Variables - Upwork Green Theme */
:root {
    --upwork-green: #14A800;
    --upwork-green-hover: #0F7D00;
    --upwork-green-light: #E6F7E6;
    --upwork-dark: #222222;
    --upwork-gray: #6B6B6B;
    --upwork-light-gray: #F5F5F5;
    --upwork-border: #E0E0E0;
    --upwork-white: #FFFFFF;
}

/* Membership Plan Section */
.upwork-membership-section {
    background-color: #FFFFFF;
    padding-top: 80px;
    padding-bottom: 80px;
}

.upwork-membership-section .section-headline h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--upwork-dark);
    margin-bottom: 50px;
}

/* Pricing Container Wrapper */
.upwork-pricing-container-wrapper {
    width: 100% !important;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    display: block !important;
}

/* Pricing Container - Single Row Layout */
.upwork-pricing-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 24px !important;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px !important;
    min-width: fit-content;
    width: 100% !important;
}

@media (min-width: 1200px) {
    .upwork-pricing-container {
        gap: 24px;
    }
}

/* Plan Card */
.upwork-plan-card {
    position: relative !important;
    background: var(--upwork-white) !important;
    border: 1px solid var(--upwork-border) !important;
    border-radius: 8px !important;
    padding: 32px 24px !important;
    width: 100% !important;
    max-width: 450px !important;
    min-width: 350px !important;
    flex: 1 1 350px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (min-width: 992px) {
    .upwork-plan-card {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }
}

.upwork-plan-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Popular Badge - Top Right (Like Upwork) */
.upwork-popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--upwork-green);
    color: var(--upwork-white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Plan Title */
.upwork-plan-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--upwork-dark);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* Plan Tagline */
.upwork-plan-tagline {
    font-size: 14px;
    color: var(--upwork-gray);
    margin: 0 0 16px 0;
    font-weight: 400;
}

/* Service Fee - Single Line */
.upwork-service-fee {
    font-size: 15px;
    color: var(--upwork-dark);
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.upwork-service-fee span {
    display: block;
}

/* Billing Cycle Selector - Compact */
.upwork-billing-selector {
    margin-bottom: 24px;
}

.upwork-billing-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--upwork-border);
    border-radius: 6px;
    font-size: 15px;
    color: var(--upwork-dark);
    background-color: var(--upwork-white);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    height: 42px;
    line-height: 22px;
}

.upwork-billing-select:hover {
    border-color: var(--upwork-green);
}

.upwork-billing-select:focus {
    outline: none;
    border-color: var(--upwork-green);
    box-shadow: 0 0 0 3px rgba(20, 168, 0, 0.1);
}

/* Features Section */
.upwork-plan-features {
    margin-bottom: 24px;
    flex-grow: 1;
}

.upwork-features-intro {
    font-size: 15px;
    color: var(--upwork-dark);
    margin: 0 0 18px 0;
    font-weight: 600;
    line-height: 1.4;
}

.upwork-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upwork-features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--upwork-dark);
    line-height: 1.6;
}

.upwork-features-list li:last-child {
    margin-bottom: 0;
}

/* Checkmark SVG */
.upwork-checkmark {
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 3px;
    width: 16px;
    height: 16px;
}

/* Styling for excluded features (No features) - grayed out */
.upwork-features-list li[style*="color: #999"] {
    color: #999 !important;
    opacity: 0.7;
}

.upwork-features-list li[style*="color: #999"] svg {
    opacity: 0.5;
    margin-right: 12px;
    margin-top: 3px;
}

/* Sub-list styling for nested items (Advanced filters, Team controls) */
.upwork-features-list li ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.upwork-features-list li ul li {
    margin-bottom: 4px;
    display: list-item;
    list-style: none;
    position: relative;
    padding-left: 12px;
}

.upwork-features-list li ul li:before {
    content: "•";
    color: #666;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Custom settings checkmarks */
.upwork-features-list .icon-text {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.upwork-features-list .icon-text.yes i {
    color: var(--upwork-green);
}

.upwork-features-list .icon-text.no i {
    color: #CCCCCC;
}

/* CTA Button - Upwork Style */
.upwork-plan-button {
    margin-top: auto;
    padding-top: 8px;
}

.upwork-cta-button {
    width: 100%;
    padding: 12px 24px;
    background-color: var(--upwork-white);
    color: var(--upwork-green);
    border: 1.5px solid var(--upwork-green);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    outline: none;
}

/* Hide link preview/tooltip */
.upwork-cta-button::before,
.upwork-cta-button::after {
    display: none !important;
}

.upwork-cta-button:hover::before,
.upwork-cta-button:hover::after {
    display: none !important;
}

.upwork-cta-button:hover {
    background-color: var(--upwork-green);
    color: var(--upwork-white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(20, 168, 0, 0.2);
}

.upwork-cta-button:active {
    transform: translateY(0);
}

.upwork-cta-button.upwork-current-plan {
    background-color: #F5F5F5;
    color: var(--upwork-gray);
    border-color: var(--upwork-border);
    cursor: not-allowed;
}

.upwork-cta-button.upwork-current-plan:hover {
    background-color: #F5F5F5;
    color: var(--upwork-gray);
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .upwork-pricing-container {
        gap: 20px;
    }
    
    .upwork-plan-card {
        max-width: 350px;
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .upwork-pricing-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .upwork-plan-card {
        max-width: 100%;
        width: 100%;
        min-width: 280px;
        flex: 1 1 300px;
    }
}

@media (max-width: 768px) {
    .upwork-pricing-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .upwork-plan-card {
        max-width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .upwork-membership-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .upwork-membership-section .section-headline h3 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .upwork-plan-card {
        padding: 24px 20px;
    }
    
    .upwork-plan-title {
        font-size: 24px;
    }
    
    .upwork-pricing-container {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .upwork-plan-card {
        padding: 20px 16px;
    }
    
    .upwork-plan-title {
        font-size: 22px;
    }
    
    .upwork-popular-badge {
        top: 12px;
        right: 12px;
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Hide old pricing plan styles if they exist */
.billing-cycle-radios {
    display: none !important;
}

.pricing-plans-container:not(.upwork-pricing-container) {
    display: none !important;
}

/* Ensure visibility - Force display */
.upwork-membership-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.upwork-pricing-container-wrapper {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
}

.upwork-pricing-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.upwork-plan-card {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Additional Upwork-Inspired Design Styles */

/* Hero Section Styles - REMOVED to prevent conflicts */
/* Hero Section Mobile Fixes - Full Image Display on Mobile */
@media (max-width: 991px) {
    .intro-banner {
        padding: 100px 20px 80px 20px !important;
        min-height: 100vh !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
}

@media (max-width: 768px) {
    .intro-banner {
        padding: 80px 15px 60px 15px !important;
        min-height: 100vh !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .banner-headline h3 {
        font-size: 28px !important;
    }
    
    .banner-headline h3 strong {
        font-size: 32px !important;
    }
    
    .banner-headline h3 span {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .intro-banner {
        padding: 60px 10px 40px 10px !important;
        min-height: 100vh !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .banner-headline h3 {
        font-size: 24px !important;
    }
    
    .banner-headline h3 strong {
        font-size: 28px !important;
    }
    
    .banner-headline h3 span {
        font-size: 14px !important;
    }
}

/* Category Grid Enhancement */
.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 0;
}

.category-box {
    background: #fff;
    border: 1px solid var(--upwork-border);
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-box:hover {
    border-color: var(--upwork-green);
    box-shadow: 0 4px 16px rgba(20, 168, 0, 0.15);
    transform: translateY(-4px);
}

.category-box-icon {
    margin-bottom: 16px;
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--upwork-green-light);
    border-radius: 12px;
    margin: 0 auto;
}

.category-icon i {
    font-size: 32px;
    color: var(--upwork-green);
}

.category-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.category-box-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--upwork-dark);
    margin: 0;
    line-height: 1.4;
}

.category-box-content h3 small {
    font-size: 14px;
    font-weight: 400;
    color: var(--upwork-gray);
    display: block;
    margin-top: 4px;
}

.category-box-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--upwork-green);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.category-box-arrow {
    display: none;
}

/* Typography Improvements */
.section-headline h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--upwork-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.section-headline.centered h3 {
    text-align: center;
}

.headline-link {
    color: var(--upwork-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.headline-link:hover {
    color: var(--upwork-green-hover);
    text-decoration: underline;
}

/* Body Typography */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--upwork-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--upwork-dark);
}

p {
    line-height: 1.7;
    color: var(--upwork-gray);
}

/* Button Styles */
.button {
    background-color: var(--upwork-green);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background-color: var(--upwork-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 168, 0, 0.3);
}

/* Section Spacing */
.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section.gray {
    background-color: var(--upwork-light-gray);
}

.section:first-of-type {
    padding-top: 60px;
}

/* Counter Section */
.counters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.single-counter {
    padding: 30px 20px;
}

.single-counter i {
    font-size: 48px;
    color: var(--upwork-green);
    margin-bottom: 20px;
}

.single-counter h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--upwork-dark);
    margin: 12px 0;
}

.counter-title {
    font-size: 16px;
    color: var(--upwork-gray);
    display: block;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero section responsive styles removed - handled by main style.css */
    
    .categories-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .counters-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .categories-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .counters-container {
        grid-template-columns: 1fr;
    }
}
