/* ============================================
   ANCIENTFIT FITNESS SECTION - COMPASS DESIGN
   Dark elegant circle with compass rose
   Fully responsive | Egyptian identity
   ============================================ */

/* ===== SECTION VARIABLES ===== */
.ancientfit-fitness-section {
    --fitness-gold: #FFD700;
    --fitness-green: #00b894;
    --fitness-red: #e74c3c;
    --fitness-orange: #f39c12;
    --fitness-purple: #8e44ad;
    --fitness-blue: #0066cc;
    --fitness-white: #ffffff;
    --fitness-glow: rgba(255, 255, 255, 0.2);
}

/* ===== SECTION WRAPPER ===== */
.ancientfit-fitness-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px clamp(15px, 4vw, 40px);
    background: var(--glass-bg, rgba(0, 0, 0, 0.55));
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* ===== HEADER STYLES ===== */
.fitness-header {
    text-align: center;
    margin-bottom: 30px;
}

.fitness-header h1 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fitness-header h1 i {
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: #ffffff;
    background: none;
}

.fitness-subtitle {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.fitness-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, transparent);
    margin: 15px auto;
}

.fitness-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== MAIN CONTAINER ===== */
.pentagram-main-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 30px 0 20px;
    align-items: stretch;
}

/* ===== DIAGRAM AREA (COMPASS + NODES) ===== */
.pentagram-diagram-area {
    flex: 1.2;
    min-width: 280px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

#compassCanvas {
    width: 100%;
    height: auto;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

/* ===== NODES POSITIONING ===== */
.pentagram-nodes {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    margin: 0 auto;
}

.pentagram-node {
    position: absolute;
    width: clamp(65px, 11vw, 100px);
    height: clamp(65px, 11vw, 100px);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.pentagram-node .node-inner {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    padding: 8px;
    box-sizing: border-box;
}

.pentagram-node:hover .node-inner {
    transform: scale(1.05);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.pentagram-node i {
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    margin-bottom: 6px;
}

.pentagram-node h4 {
    font-size: clamp(0.65rem, 1.1vw, 0.85rem);
    font-weight: 700;
    margin: 4px 0;
    color: white;
}

.pentagram-node span {
    font-size: clamp(0.5rem, 0.9vw, 0.65rem);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== NODE POSITIONS (Circular Layout) ===== */
.node-bodytype {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.node-nutrition {
    top: 25%;
    left: 5%;
}

.node-movement {
    top: 25%;
    right: 5%;
}

.node-sleep {
    bottom: 15%;
    left: 15%;
}

.node-psychology {
    bottom: 15%;
    right: 15%;
}

.central-node {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(80px, 14vw, 120px);
    height: clamp(80px, 14vw, 120px);
    z-index: 15;
}

/* ===== NODE COLOR BORDERS ===== */
.node-bodytype .node-inner {
    border-color: var(--fitness-red);
}
.node-nutrition .node-inner {
    border-color: var(--fitness-green);
}
.node-movement .node-inner {
    border-color: var(--fitness-orange);
}
.node-sleep .node-inner {
    border-color: var(--fitness-purple);
}
.node-psychology .node-inner {
    border-color: var(--fitness-blue);
}
.central-node .node-inner {
    border-color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}

/* ===== INFO PANEL ===== */
.pentagram-info-panel {
    flex: 0.9;
    min-width: 280px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    margin-bottom: 6px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-header h3 i {
    color: #ffffff;
    font-size: 1.2rem;
}

.panel-header p {
    font-size: clamp(0.75rem, 1.1vw, 0.85rem);
    color: rgba(255, 255, 255, 0.6);
}

.panel-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 420px;
    scrollbar-width: thin;
    scrollbar-color: #ffffff rgba(255, 255, 255, 0.1);
}

.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 3px;
}

/* ===== DEFAULT MESSAGE ===== */
.default-message {
    text-align: center;
    padding: 30px 15px;
}

.default-message i {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 12px;
    display: block;
}

.default-message h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: white;
}

.default-message p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== MODULE DETAIL STYLES ===== */
.module-detail {
    animation: fadeIn 0.3s ease;
}

.module-detail h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.module-detail p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.module-detail ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.module-detail li {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.4;
}

.module-detail strong {
    color: #ffffff;
}

.module-detail em {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    display: block;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== CTA BUTTONS INSIDE PANEL ===== */
.panel-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    color: #000000;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

.panel-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ===== FEATURE BADGES ===== */
.feature-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-right: 8px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-badge i {
    margin-right: 4px;
    color: #ffffff;
    font-size: 0.7rem;
}

/* ===== AFFILIATE HIGHLIGHT ===== */
.affiliate-highlight {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #ffffff;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 8px;
}

.affiliate-highlight p {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

/* ===== COACH CERTIFICATION HIGHLIGHT ===== */
.coach-highlight {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #ffffff;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 8px;
}

.coach-highlight p {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 768px) {
    .pentagram-main-container {
        flex-direction: column;
    }

    .pentagram-diagram-area {
        min-height: 450px;
    }

    .pentagram-node {
        width: clamp(60px, 14vw, 75px);
        height: clamp(60px, 14vw, 75px);
    }

    .central-node {
        width: clamp(75px, 16vw, 90px);
        height: clamp(75px, 16vw, 90px);
    }

    .panel-content {
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .ancientfit-fitness-section {
        padding: 15px;
    }

    .node-bodytype {
        top: -8px;
    }
    .node-nutrition {
        top: 18%;
        left: 0;
    }
    .node-movement {
        top: 18%;
        right: 0;
    }
    .node-sleep {
        bottom: 8%;
        left: 8%;
    }
    .node-psychology {
        bottom: 8%;
        right: 8%;
    }

    .pentagram-node .node-inner {
        padding: 5px;
    }

    .pentagram-node h4 {
        font-size: 0.55rem;
    }

    .pentagram-node span {
        font-size: 0.45rem;
    }

    .pentagram-node i {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .panel-header {
        padding: 12px 15px;
    }

    .panel-content {
        padding: 15px;
        max-height: 320px;
    }

    .feature-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pentagram-node {
        width: clamp(70px, 9vw, 85px);
        height: clamp(70px, 9vw, 85px);
    }

    .central-node {
        width: clamp(85px, 11vw, 100px);
        height: clamp(85px, 11vw, 100px);
    }
}

@media (min-width: 1200px) {
    .ancientfit-fitness-section {
        padding: 30px 60px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATION ===== */
@media (hover: none) and (pointer: coarse) {
    .pentagram-node:hover .node-inner {
        transform: none;
    }
    
    .pentagram-node:active .node-inner {
        transform: scale(0.98);
    }
    
    .panel-cta-btn:active {
        transform: scale(0.98);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .ancientfit-fitness-section {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
    
    .pentagram-node .node-inner {
        background: #f0f0f0;
        border: 1px solid #ccc;
    }
    
    .pentagram-node h4 {
        color: black;
    }
    
    .panel-cta-btn {
        background: #ccc;
        color: black;
    }
}

/* Compass status indicator */
.compass-status {
    margin-top: 15px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.7rem;
    display: inline-block;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.compass-status i {
    margin-right: 6px;
    color: #FFD700;
}