/* ============================================================
   RESOURCES SECTION - ADDITIONAL PREMIUM STYLING
   ============================================================ */

/* Expert Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tip-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--apple-gray-100);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--apple-yellow), var(--apple-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tip-card:hover::before {
    transform: scaleX(1);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--apple-orange);
}

.tip-header i {
    font-size: 1.25rem;
}

.tip-header span {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-card h5 {
    font-size: 1.125rem;
    margin: 0 0 12px 0;
    color: var(--apple-text);
    font-weight: 700;
}

.tip-card p {
    margin: 0;
    line-height: 1.6;
    color: var(--apple-gray-600);
    font-size: 0.9375rem;
}

/* Tool Icon Enhancement */
.tool-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--apple-blue);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-link:hover {
    background: var(--apple-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

/* ROI Calculator Enhancement */
.roi-calculator {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--apple-gray-100);
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-input-group label {
    font-weight: 600;
    color: var(--apple-text);
    font-size: 0.9375rem;
}

.calc-input-group input[type="number"],
.calc-input-group input[type="range"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--apple-gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--apple-text);
    transition: all 0.3s ease;
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.calc-input-group input[type="range"] {
    padding: 0;
    height: 8px;
    accent-color: var(--apple-blue);
    cursor: pointer;
}

.range-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--apple-blue);
    margin-top: 8px;
}

.calculator-actions {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.calculator-actions button {
    flex: 1;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#calculateROI {
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
    color: white;
}

#calculateROI:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.roi-results {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1), rgba(48, 209, 88, 0.1));
    border-radius: 16px;
    padding: 32px;
    border-left: 4px solid var(--apple-green);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.roi-results.show {
    opacity: 1;
    transform: translateY(0);
}

.roi-results h4 {
    margin: 0 0 24px 0;
    font-size: 1.5rem;
    color: var(--apple-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.roi-results h4 i {
    color: var(--apple-green);
}

.savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.savings-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
}

.savings-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--apple-green);
    margin-bottom: 8px;
    display: block;
}

.savings-label {
    font-size: 0.875rem;
    color: var(--apple-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-note {
    font-size: 0.9375rem;
    color: var(--apple-gray-600);
    line-height: 1.6;
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin-top: 16px;
}

/* 6-Step Roadmap Enhancement */
.roadmap-container {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.1);
    margin-top: 32px;
}

.roadmap-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.roadmap-steps::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 48px;
    bottom: 48px;
    width: 2px;
    background: linear-gradient(180deg, var(--apple-blue), var(--apple-purple));
}

.roadmap-step {
    display: flex;
    gap: 20px;
    align-items: start;
    padding: 24px;
    background: var(--apple-gray-50);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.roadmap-step:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
    position: relative;
    z-index: 1;
}

.step-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    color: var(--apple-text);
}

.step-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--apple-gray-600);
}

.step-timeline {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--apple-blue);
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 8px;
}

/* Achievement Badges Enhancement */
.achievement-badges {
    margin-top: 40px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.badge-item {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--apple-gray-100);
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--apple-blue);
}

.badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(175, 82, 222, 0.1));
    color: var(--apple-blue);
    transition: all 0.3s ease;
}

.badge-item:hover .badge-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
}

.badge-item.earned .badge-icon {
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
    color: white;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

.badge-name {
    font-weight: 700;
    color: var(--apple-text);
    margin-bottom: 8px;
    font-size: 1rem;
}

.badge-description {
    font-size: 0.8125rem;
    color: var(--apple-gray-600);
    line-height: 1.4;
}

.badge-item.earned {
    border-color: var(--apple-blue);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.03), rgba(175, 82, 222, 0.03));
}

/* Certificate Preview Enhancement */
.certificate-preview {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border: 8px solid;
    border-image: linear-gradient(135deg, var(--apple-blue), var(--apple-purple)) 1;
    text-align: center;
    margin-top: 32px;
}

.certificate-seal {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--apple-yellow), var(--apple-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 149, 0, 0.4);
}

.certificate-preview h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
    }
    
    .savings-grid {
        grid-template-columns: 1fr;
    }
    
    .roadmap-steps::before {
        display: none;
    }
    
    .roadmap-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
