/**
 * African Cultural Patterns and Design Elements
 * 
 * This stylesheet provides utility classes for applying culturally appropriate
 * African patterns and design elements throughout the Amaworla platform.
 * 
 * Requirements: 2.4, 6.6
 */

/* ============================================
   PATTERN BACKGROUNDS
   ============================================ */

.pattern-adinkra {
    background-image: url('../images/patterns/adinkra-pattern.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
}

.pattern-kente {
    background-image: url('../images/patterns/kente-pattern.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
}

.pattern-mudcloth {
    background-image: url('../images/patterns/mudcloth-pattern.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
}

.pattern-tribal {
    background-image: url('../images/patterns/tribal-geometric.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
}

/* Pattern overlays with opacity control */
.pattern-overlay-light {
    position: relative;
}

.pattern-overlay-light::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

.pattern-overlay-light.pattern-adinkra::before {
    background-image: url('../images/patterns/adinkra-pattern.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
}

.pattern-overlay-light.pattern-kente::before {
    background-image: url('../images/patterns/kente-pattern.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
}

.pattern-overlay-light.pattern-mudcloth::before {
    background-image: url('../images/patterns/mudcloth-pattern.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
}

.pattern-overlay-light.pattern-tribal::before {
    background-image: url('../images/patterns/tribal-geometric.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
}

/* ============================================
   DECORATIVE BORDERS
   ============================================ */

.african-border-top {
    border-top: 4px solid transparent;
    background-image: 
        linear-gradient(white, white),
        url('../images/decorative/african-border.svg');
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: auto, 800px 100px;
    background-position: 0 0, center top;
    background-repeat: no-repeat, repeat-x;
    padding-top: 2rem;
}

.african-border-bottom {
    border-bottom: 4px solid transparent;
    background-image: 
        linear-gradient(white, white),
        url('../images/decorative/african-border.svg');
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: auto, 800px 100px;
    background-position: 0 0, center bottom;
    background-repeat: no-repeat, repeat-x;
    padding-bottom: 2rem;
}

/* ============================================
   CULTURAL ACCENT ELEMENTS
   ============================================ */

/* Decorative corner accents */
.corner-accent {
    position: relative;
}

.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.corner-accent::before {
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #FF6B35 0%, transparent 50%);
    border-top-left-radius: 0.5rem;
}

.corner-accent::after {
    bottom: 0;
    right: 0;
    background: linear-gradient(-45deg, #8B5CF6 0%, transparent 50%);
    border-bottom-right-radius: 0.5rem;
}

/* Geometric divider */
.geometric-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.geometric-divider::before,
.geometric-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 2px;
    background: linear-gradient(to right, transparent, #FF6B35, transparent);
}

.geometric-divider::before {
    left: 0;
}

.geometric-divider::after {
    right: 0;
}

.geometric-divider-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #F59E0B;
    transform: rotate(45deg);
    position: relative;
    z-index: 1;
}

/* ============================================
   CULTURAL CARD STYLES
   ============================================ */

.cultural-card {
    position: relative;
    overflow: hidden;
}

.cultural-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        135deg,
        #FF6B35 0%,
        #8B5CF6 25%,
        #06B6D4 50%,
        #F59E0B 75%,
        #10B981 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: inherit;
}

.cultural-card:hover::before {
    opacity: 0.1;
}

/* ============================================
   AFRICAN-INSPIRED ANIMATIONS
   ============================================ */

@keyframes pulse-african {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

.pulse-african {
    animation: pulse-african 2s infinite;
}

@keyframes shimmer-kente {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.shimmer-kente {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 107, 53, 0.2) 25%,
        rgba(139, 92, 246, 0.2) 50%,
        rgba(6, 182, 212, 0.2) 75%,
        transparent 100%
    );
    background-size: 200px 100%;
    animation: shimmer-kente 3s infinite;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .pattern-adinkra,
    .pattern-kente,
    .pattern-mudcloth,
    .pattern-tribal {
        background-size: 150px 150px;
    }
    
    .african-border-top,
    .african-border-bottom {
        background-size: auto, 600px 75px;
    }
    
    .corner-accent::before,
    .corner-accent::after {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .pattern-adinkra,
    .pattern-kente,
    .pattern-mudcloth,
    .pattern-tribal {
        background-size: 100px 100px;
    }
    
    .african-border-top,
    .african-border-bottom {
        background-size: auto, 400px 50px;
    }
    
    .corner-accent::before,
    .corner-accent::after {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text with cultural gradient */
.text-cultural-gradient {
    background: linear-gradient(135deg, #FF6B35 0%, #8B5CF6 50%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cultural accent line */
.accent-line-cultural {
    height: 4px;
    background: linear-gradient(90deg, #FF6B35 0%, #F59E0B 50%, #10B981 100%);
    border-radius: 2px;
}

/* Diverse skin tone color utilities (for illustrations) */
.skin-tone-1 { color: #8B6F47; }
.skin-tone-2 { color: #5C4033; }
.skin-tone-3 { color: #A67C52; }
.skin-tone-4 { color: #6B4423; }
.skin-tone-5 { color: #9B7653; }

.bg-skin-tone-1 { background-color: #8B6F47; }
.bg-skin-tone-2 { background-color: #5C4033; }
.bg-skin-tone-3 { background-color: #A67C52; }
.bg-skin-tone-4 { background-color: #6B4423; }
.bg-skin-tone-5 { background-color: #9B7653; }
