/*
Theme Name: Astra Match Child
Description: Child theme per Match Professionale su Astra
Template: astra
Version: 1.0
Text Domain: astra-match-child
*/

@import url("../astra/style.css");

/* Match Professionale Custom Variables */
:root {
    --match-primary: #1e3a8a;
    --match-secondary: #059669;
    --match-accent: #374151;
    --match-success: #10b981;
    --match-warning: #f59e0b;
    --match-danger: #ef4444;
    --match-gray-50: #f9fafb;
    --match-gray-100: #f3f4f6;
    --match-gray-200: #e5e7eb;
    --match-gray-900: #111827;
    --match-radius: 0.5rem;
    --match-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Astra Override - Match Professionale Style */
.ast-theme-transparent-header #masthead {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--match-shadow);
}

/* Logo Ottimizzato */
.site-logo-img {
    max-height: 50px;
    width: auto;
}

/* Navigation Match Style */
.main-navigation ul li a {
    color: var(--match-gray-900);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: var(--match-radius);
    transition: all 0.3s ease;
}

.main-navigation ul li a:hover {
    background: rgba(30, 58, 138, 0.1);
    color: var(--match-primary);
}

/* Match Buttons */
.wp-block-button.is-style-match-primary .wp-block-button__link {
    background: linear-gradient(135deg, var(--match-primary), #3b82f6);
    border: none;
    border-radius: var(--match-radius);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.wp-block-button.is-style-match-primary .wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(30, 58, 138, 0.3);
}

.wp-block-button.is-style-match-secondary .wp-block-button__link {
    background: var(--match-secondary);
    border: none;
    border-radius: var(--match-radius);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
}

/* Match Cards */
.match-card {
    background: white;
    border-radius: var(--match-radius);
    box-shadow: var(--match-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--match-gray-200);
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Match Score Badge */
.match-score {
    display: inline-flex;
    align-items: center;
    background: var(--match-success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
}

.match-score.medium {
    background: var(--match-warning);
}

.match-score.low {
    background: var(--match-danger);
}

/* MatchCoins Widget */
.matchcoins-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, var(--match-primary), var(--match-secondary));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Professional Cards Grid */
.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.professional-card {
    background: white;
    border-radius: var(--match-radius);
    padding: 1.5rem;
    box-shadow: var(--match-shadow);
    border-left: 4px solid var(--match-primary);
    transition: all 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.professional-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--match-gray-200);
}

.professional-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--match-gray-900);
    margin-bottom: 0.5rem;
}

.professional-skill {
    color: var(--match-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.professional-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--match-gray-200);
}

.stat-number {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--match-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--match-gray-500);
}

/* Badge System */
.badge-match {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin: 2px;
}

.badge-verified {
    background: #dbeafe;
    color: #1e40af;
}

.badge-top-performer {
    background: #fef3c7;
    color: #d97706;
}

.badge-quick-response {
    background: #d1fae5;
    color: #065f46;
}

/* Forms Match Style */
.wpcf7-form-control {
    border: 2px solid var(--match-gray-200);
    border-radius: var(--match-radius);
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: var(--match-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.wpcf7-submit {
    background: var(--match-primary);
    color: white;
    border: none;
    border-radius: var(--match-radius);
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-submit:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .professionals-grid {
        grid-template-columns: 1fr;
    }
    
    .professional-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .ast-builder-menu-mobile .main-navigation {
        background: white;
    }
}

/* Footer Match Style */
.site-footer {
    background: var(--match-gray-900);
    color: white;
    padding: 3rem 0 1rem;
}

.site-footer a {
    color: var(--match-gray-300);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: white;
}

/* Utility Classes */
.text-match-primary { color: var(--match-primary); }
.text-match-secondary { color: var(--match-secondary); }
.text-match-success { color: var(--match-success); }
.bg-match-primary { background-color: var(--match-primary); }
.bg-match-secondary { background-color: var(--match-secondary); }
.bg-match-light { background-color: var(--match-gray-50); }

/* Loading Animation */
.loading-match {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--match-gray-200);
    border-top: 2px solid var(--match-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
