/* --- GARDEN BOX THEME STYLESHEET --- */
:root {
    /* Updated Dark Mode Palette */
    --bg-deep: #0f120f;             /* Deepest midnight green/black */
    --soil-dark: #1a1410;           /* Dark rich soil */
    --wood-frame: #5d4037;          /* Darker mahogany wood */
    --wood-trim: #3e2723;
    --leaf-bright: #82a31a;         /* Electric lime for highlights */
    --leaf-muted: #2e3d33;          /* Dark forest green for cards */
    --seed-gold: #ffc107;           /* Glowing amber */
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --codeguardian-color: #1C8FCC;  /* Kept from your file */

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --wood-shadow: 6px 6px 0px #080504;
    
    /* Spacing & Effects */
    --wood-shadow: 4px 4px 0px #2a1d15;
    --card-radius: 12px;
}

/* Base Body Styling */
body {
    background-color: var(--garden-bed);
    background-image: radial-gradient(#d2b48c 0.5px, transparent 0.5px); /* Subtle soil texture */
    background-size: 20px 20px;
    color: var(--soil-deep);
    font-family: 'Segoe UI', 'Georgia', serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header & Typography */
.joining-header {
    text-align: center;
    padding: 50px 20px;
}

.joining-header h1 {
    font-size: 2.5rem;
    color: var(--leaf-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* The Garden Box (Main Container) */
.steps-timeline {
    max-width: 850px;
    margin: 20px auto 60px;
    padding: 30px;
    background-color: #efe3d0;
    border: 12px solid var(--wood-frame); /* The "Wooden" frame */
    border-radius: 8px;
    box-shadow: var(--wood-shadow);
    position: relative;
}

/* Individual Rule Cards */
.step-card {
    background: #ffffff;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    padding: 25px;
    border-radius: var(--card-radius);
    border-bottom: 4px solid #ddd;
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateX(10px);
    border-bottom-color: var(--leaf-accent);
}

/* Icon Styling */
.step-icon {
    background: var(--leaf-primary);
    color: white;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-right: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Step Tags (The badges like "Setup", "Bonus") */
.step-tag {
    display: inline-block;
    background: var(--leaf-accent);
    color: var(--soil-deep);
    font-weight: bold;
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Highlighted Text */
.highlight {
    color: var(--leaf-primary);
    font-weight: 800;
    border-bottom: 2px dashed var(--seed-gold);
}

/* Status/Checklist styling (reused from your joining page) */
.preflight-checklist {
    max-width: 850px;
    margin: 0 auto 30px;
}

.checklist-card {
    background: var(--leaf-primary);
    color: white;
    padding: 20px;
    border-radius: var(--card-radius);
    text-align: center;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.check-item {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 5px;
}

/* --- FOOTER --- */

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(252, 15, 192, 0.2);
    margin-top: 50px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    width: 100%;
    font-size: 1.5rem;
}

.social-icons a {
    color: #ffffff; 
    font-size: 26px;
    text-decoration: none;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px; 
    height: 45px;
}

.vulkan-footer {
    background: #0a0c10;
    padding: 60px 20px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(252, 15, 192, 0.2);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-motto {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #555;
}

.footer-links h4, .footer-socials h4 {
    color: var(--codeguardian-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--codeguardian-color); }

.social-icons a:hover {
    color: var(--codeguardian-color) !important;
    transform: translateY(-5px);
}


/* --- MOBILE SUPPORT --- */

@media screen and (max-width: 768px) {
    
    body { padding: 40px; }

    .steps-timeline {
        padding: 30px;
        border-width: 12px; /* Thick "Wooden" look for big screens */
    }

    .step-card {
        flex-direction: row; /* Icon and text sit side-by-side */
        text-align: left;
        align-items: flex-start;
    }

    .step-icon {
        margin-bottom: 0;
        margin-right: 20px;
        min-width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

html {
    scroll-behavior: smooth;
}

/* Global Reset & Body */
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    /* Subtle grass/soil texture using radial gradients */
    background-image: radial-gradient(var(--leaf-muted) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* Stylized Header */
.joining-header {
    text-align: center;
    padding: 80px 20px 40px;
}

.joining-header h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
    color: var(--leaf-bright);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(130, 163, 26, 0.3);
}

.joining-header p {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
}

/* The "Garden Box" Main Container */
.steps-timeline {
    max-width: 900px;
    margin: 20px auto 80px;
    padding: 40px;
    background-color: var(--soil-dark);
    /* Beveled Wood Frame Effect */
    border: 15px solid var(--wood-frame);
    border-image: linear-gradient(to bottom, var(--wood-frame), var(--wood-trim)) 1;
    box-shadow: var(--wood-shadow);
    position: relative;
}

/* Individual Rule Cards (Stylized) */
.step-card {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column; /* Mobile default */
    align-items: center;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.step-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--leaf-bright);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Glowy Icons */
.step-icon {
    background: linear-gradient(135deg, var(--leaf-muted), var(--bg-deep));
    color: var(--leaf-bright);
    min-width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px; /* Squircle shape */
    font-size: 1.8rem;
    margin-bottom: 20px;
    border: 1px solid var(--leaf-bright);
    box-shadow: 0 0 15px rgba(130, 163, 26, 0.2);
}

/* Step Badges */
.step-tag {
    display: inline-block;
    background: var(--leaf-bright);
    color: var(--bg-deep);
    font-weight: 900;
    font-size: 0.7rem;
    padding: 4px 15px;
    border-radius: 5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.step-info h3 {
    color: #fff;
    margin: 5px 0 15px;
    font-size: 1.4rem;
}

.highlight {
    color: var(--seed-gold);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.2);
}

/* --- FOOTER (Midnight Style) --- */
.vulkan-footer {
    background: #050705;
    padding: 80px 20px 40px;
    border-top: 2px solid var(--wood-frame);
}

.footer-links h4, .footer-socials h4 {
    color: var(--leaf-bright);
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.social-icons a {
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--seed-gold) !important;
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-5px);
}

/* Seed Color Guide Styling */
.seed-black { color: #ffffff; border: 1px solid #444; background: #000 !important; }
.seed-red { color: #ff4d4d; border: 1px solid #444; background: #000 !important; }
.seed-yellow { color: #ffeb3b; border: 1px solid #444; background: #000 !important; }
.seed-green { color: #4caf50; border: 1px solid #444; background: #000 !important; }
.seed-blue { color: #2196f3; border: 1px solid #444; background: #000 !important; }
.seed-white { color: #ffffff; border: 1px solid #444; background: #000 !important; }

.check-item i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Ensure the grid looks good on mobile */
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

/* Centered Seed Layout */
.seed-flex-container {
    display: flex;
    flex-wrap: wrap;       /* Allows items to move to the next line */
    justify-content: center; /* Centers items in the row */
    gap: 15px;
    margin-top: 25px;
    max-width: 700px;      /* Constrains width to encourage 2 rows */
    margin-left: auto;
    margin-right: auto;
}

.seed-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 8px;
    min-width: 140px;      /* Ensures they stay a consistent size */
    flex: 0 1 auto;        /* Allows items to grow/shrink but keep base size */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}


/* Seed Flex Container Refinement */
.seed-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.seed-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    width: 180px; /* Fixed width for perfect grid alignment */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.seed-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.seed-item .pts {
    font-weight: 900;
    font-size: 1.1rem;
    display: block;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Specific Shape Colors & Glows */
.seed-black i { color: #ffffff; filter: drop-shadow(0 0 5px #fff); }
.seed-red i { color: #ff4d4d; filter: drop-shadow(0 0 5px #ff4d4d); }
.seed-yellow i { color: #ffeb3b; filter: drop-shadow(0 0 5px #ffeb3b); }
.seed-green i { color: #4caf50; filter: drop-shadow(0 0 5px #4caf50); }
.seed-blue i { color: #2196f3; filter: drop-shadow(0 0 5px #2196f3); }
.seed-white i { color: #ffffff; opacity: 0.8; filter: drop-shadow(0 0 5px #fff); }

/* Layout Hover Effect */
.seed-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--leaf-bright);
}

/* Shape Container Styling */
.shape {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 0 8px currentColor);
}

/* 5pt: Almond (Pointed Ovoid) */
.almond {
    background: currentColor;
    width: 25px;
    height: 45px;
    border-radius: 80% 15% 80% 15%; /* Creates the tapered almond look */
    transform: rotate(45deg);
    color: #ffffff;
}

/* 4pt: Bean (Kidney shape) */
.bean {
    background: currentColor;
    width: 40px;
    height: 25px;
    border-radius: 40% 40% 50% 50% / 70% 70% 30% 30%;
    color: #ff4d4d;
}

/* 3pt: Pyramid (Triangle) */
.pyramid {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid currentColor;
    background: transparent;
    color: #ffeb3b;
}

/* 2pt: Cube (Square) */
.cube {
    background: currentColor;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    color: #4caf50;
}

/* 1pt: 4-Sided Diamond (Rhombus) */
.diamond-4 {
    background: currentColor;
    width: 25px;
    height: 25px;
    transform: rotate(45deg) skew(10deg, 10deg);
    color: #2196f3;
}

/* 0pt: Ball (Circle) */
.ball {
    background: currentColor;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #ffffff;
}

.seed-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    width: 180px; 
    min-height: 220px; /* Added: Ensures all cards are the same height */
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Added: This container keeps the shape area consistent */
.shape-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.seed-item span {
    text-align: center;
}

.seed-item .pts {
    margin-top: auto; /* The Magic: Pushes the points to the bottom */
    font-weight: 900;
    font-size: 1.1rem;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    color: var(--leaf-bright); /* Makes the points pop */
}

/* Responsive tweaks */
@media (max-width: 500px) {
    .seed-item {
        min-width: 120px;
        font-size: 0.9rem;
    }
}

/* --- MOBILE SUPPORT & RESPONSIVENESS --- */

/* Tablet & Desktop */
@media screen and (min-width: 769px) {
    .step-card {
        flex-direction: row; /* Switch to side-by-side */
        text-align: left;
        align-items: flex-start;
    }

    .step-icon {
        margin-bottom: 0;
        margin-right: 30px;
    }
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    body { padding: 10px; }
    
    .steps-timeline {
        padding: 20px;
        border-width: 8px;
    }
    
    .step-card {
        padding: 20px;
    }
}