/* ArabFlex Champions - Stylesheet */

.afc-section {
    padding: 60px 20px;
    background: #f9fafb;
    font-family: inherit;
}

.afc-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Header ===== */
.afc-header {
    text-align: center;
    margin-bottom: 40px;
}

.afc-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    color: #6b7280;
    margin: 0 0 8px;
    font-weight: 600;
}

.afc-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.afc-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* ===== Carousel Wrapper ===== */
.afc-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.afc-swiper {
    overflow: hidden;
}

.afc-swiper .swiper-pagination {
    position: static;
    margin-top: 24px;
    text-align: center;
}

.afc-swiper .swiper-pagination-bullet {
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s;
}

.afc-swiper .swiper-pagination-bullet-active {
    background: #111827;
    width: 24px;
    border-radius: 4px;
}

/* ===== Nav buttons ===== */
.afc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.2s;
}

.afc-nav:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.afc-nav-prev { right: 0; }
.afc-nav-next { left: 0; }

/* ===== Card ===== */
.afc-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.afc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.afc-card-image {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    position: relative;
}

.afc-badge {
    position: absolute;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.afc-badge-featured {
    top: 12px;
    right: 12px;
    background: rgba(251, 191, 36, 0.95);
    color: #78350f;
}

.afc-badge-photos {
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.afc-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.afc-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
}

.afc-card-meta {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 10px;
}

.afc-card-bio {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 12px;
}

/* ===== Tags ===== */
.afc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.afc-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 6px;
}

.afc-card-link {
    margin-top: auto;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.afc-card-link:hover {
    color: #1d4ed8;
}

/* ===== CTA ===== */
.afc-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.afc-cta p {
    color: #6b7280;
    margin: 0 0 16px;
}

.afc-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.afc-btn-primary {
    background: #111827;
    color: #fff;
}

.afc-btn-primary:hover {
    background: #1f2937;
    color: #fff;
    transform: translateY(-2px);
}

.afc-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

/* ===== Form ===== */
.afc-form-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.afc-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.afc-form-header h2 {
    font-size: 28px;
    color: #111827;
    margin: 0 0 8px;
}

.afc-form-header p {
    color: #6b7280;
    margin: 0;
}

.afc-form {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.afc-field {
    margin-bottom: 20px;
}

.afc-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.afc-required {
    color: #dc2626;
}

.afc-field input[type="text"],
.afc-field input[type="number"],
.afc-field input[type="url"],
.afc-field input[type="email"],
.afc-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.afc-field input:focus,
.afc-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.afc-field textarea {
    resize: vertical;
    min-height: 80px;
}

.afc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.afc-fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.afc-fieldset legend {
    padding: 0 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.afc-fieldset legend small {
    font-weight: 400;
    color: #6b7280;
}

/* ===== Photos Grid ===== */
.afc-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.afc-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.afc-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afc-photo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afc-photo-add {
    aspect-ratio: 1;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    background: #fafafa;
}

.afc-photo-add:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.afc-photo-add-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.afc-photo-add-text {
    font-size: 11px;
}

.afc-upload-progress {
    margin-top: 12px;
}

.afc-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.afc-progress-fill {
    height: 100%;
    background: #2563eb;
    width: 0%;
    transition: width 0.3s;
}

.afc-progress-text {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: 4px;
}

.afc-form-actions {
    text-align: center;
    margin-top: 24px;
}

.afc-form-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.afc-form-message-success {
    background: #d1fae5;
    color: #065f46;
}

.afc-form-message-error {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== Notices ===== */
.afc-notice {
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.afc-notice-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ===== Profile Page ===== */
.afc-profile {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.afc-profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.afc-profile-name {
    font-size: 32px;
    color: #111827;
    margin: 0 0 8px;
}

.afc-profile-meta {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
}

.afc-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.afc-gallery-item-main {
    grid-row: span 2;
}

.afc-gallery a {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.afc-gallery-item-main {
    aspect-ratio: 1;
}

.afc-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.afc-gallery a:hover img {
    transform: scale(1.05);
}

.afc-profile-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.afc-profile-section:last-child {
    border-bottom: none;
}

.afc-profile-section h2 {
    font-size: 18px;
    color: #111827;
    margin: 0 0 16px;
}

.afc-profile-bio,
.afc-achievements {
    color: #4b5563;
    line-height: 1.8;
}

.afc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.afc-stat {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.afc-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.afc-stat-value small {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

.afc-stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.afc-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.afc-social {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    transition: opacity 0.2s;
}

.afc-social:hover { opacity: 0.85; }
.afc-social-fb { background: #1877f2; }
.afc-social-ig { background: #e4405f; }
.afc-social-tw { background: #000; }
.afc-social-yt { background: #ff0000; }
.afc-social-tk { background: #000; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .afc-section { padding: 40px 16px; }
    .afc-title { font-size: 24px; }
    .afc-carousel-wrapper { padding: 0 40px; }
    .afc-nav { width: 36px; height: 36px; }
    .afc-row { grid-template-columns: 1fr; }
    .afc-form { padding: 20px; }
    .afc-gallery { grid-template-columns: 1fr 1fr; }
    .afc-gallery-item-main { grid-column: span 2; grid-row: auto; }
    .afc-profile-name { font-size: 24px; }
}
