/**
 * WiseLeaf Homepage Card Components - Extracted Inline Styles
 * Phase 2 Implementation: Safe extraction of card component styles
 * 
 * Extracted from: help.html, publish.html, and other high-priority files
 * Risk Level: LOW (Reusable components)
 * Date: October 21, 2025
 */

/* ====================================
   BASE CARD COMPONENTS
   ==================================== */

/* Primary white card with shadow */
.card-primary {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Primary card with colored top border variants */
.card-primary--blue {
    border-top: 4px solid #0c4a60;
}

.card-primary--teal {
    border-top: 4px solid #1a5c75;
}

.card-primary--navy {
    border-top: 4px solid #005a8b;
}

.card-primary--green {
    border-top: 4px solid #16a34a;
}

/* Secondary light card with left border */
.card-secondary {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #0c4a60;
}

.card-secondary--green {
    border-left-color: #16a34a;
}

.card-secondary--teal {
    border-left-color: #1a5c75;
}

.card-secondary--navy {
    border-left-color: #005a8b;
}

/* Large content card */
.card-large {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ====================================
   CARD CONTENT ELEMENTS
   ==================================== */

/* Card icons */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card-icon--blue {
    color: #0c4a60;
}

.card-icon--teal {
    color: #1a5c75;
}

.card-icon--navy {
    color: #005a8b;
}

.card-icon--green {
    color: #16a34a;
}

/* Card titles */
.card-title {
    color: #0c4a60;
    font-family: 'Merriweather', serif;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-title--large {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Card descriptions */
.card-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.card-description--medium {
    font-size: 1rem;
    color: #4a5568;
}

/* Card links */
.card-link {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    color: #15803d;
    transform: translateX(2px);
}

/* ====================================
   GRID LAYOUTS FOR CARDS
   ==================================== */

/* Standard card grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.cards-grid--large {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Card section container */
.cards-section {
    max-width: 1200px;
    margin: 60px auto 50px;
    padding: 0 20px;
}

/* ====================================
   BUTTON COMPONENTS
   ==================================== */

/* Primary button */
.btn-primary {
    background: #16a34a;
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #15803d;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Secondary button (transparent with backdrop blur) */
.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ====================================
   SPECIALIZED CARD VARIANTS
   ==================================== */

/* Feature cards with center alignment */
.card-feature {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.card-feature:hover {
    transform: translateY(-5px);
}

/* Info cards with border variants */
.card-info {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #16a34a;
}

/* List styling inside cards */
.card-list {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
    padding-left: 0;
    list-style: none;
}

.card-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.card-list li::before {
    content: "•";
    color: #16a34a;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    .cards-grid,
    .cards-grid--large {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cards-section {
        margin: 40px auto 40px;
        padding: 0 15px;
    }
    
    .card-primary,
    .card-large,
    .card-feature {
        padding: 25px;
    }
    
    .card-secondary,
    .card-info {
        padding: 20px;
    }
    
    .card-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-title--large {
        font-size: 1.2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cards-section {
        margin: 30px auto 30px;
        padding: 0 10px;
    }
    
    .card-primary,
    .card-large,
    .card-feature {
        padding: 20px;
    }
    
    .card-secondary,
    .card-info {
        padding: 18px;
    }
    
    .card-icon {
        font-size: 1.8rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-description {
        font-size: 13px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

/* Text alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Spacing utilities */
.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

/* Color utilities */
.color-primary {
    color: #0c4a60;
}

.color-success {
    color: #16a34a;
}

.color-muted {
    color: #555;
}