/* AULA Team Registration Block Styles */
.atr-team-block {
    --primary-color: #2c4b8e;
    --secondary-color: #4a90e2;
    --accent-color: #f39c12;
    --progress: 0%;
    margin: 30px auto;
    max-width: 1200px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Card Styles */
.atr-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Card Variations */
.atr-card-elevated .atr-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.atr-card-elevated .atr-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.atr-card-flat .atr-card {
    background: #f8f9fa;
}

.atr-card-bordered .atr-card {
    border: 2px solid #e9ecef;
}

.atr-card-gradient .atr-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Image Position */
.atr-image-right .atr-card {
    flex-direction: row-reverse;
}

/* Image Container */
.atr-image-container {
    position: relative;
    flex-shrink: 0;
    width: 40%;
    max-width: 400px;
}

.atr-team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Circular Progress (on image) */
.atr-circular-progress {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.atr-circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.atr-progress-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 5;
}

.atr-progress-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.atr-circular-progress .atr-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.atr-progress-number {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Content */
.atr-content {
    flex: 1;
    padding: 40px;
}

.atr-header {
    margin-bottom: 20px;
}

.atr-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.atr-subtitle {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

.atr-description {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 25px;
}

/* Registration Status */
.atr-registration-status {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.atr-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.atr-status-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atr-status-numbers {
    font-size: 18px;
    color: #212529;
}

.atr-status-numbers strong {
    color: var(--primary-color);
    font-weight: 600;
}

.atr-full-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Progress Bar Container */
.atr-progress-container {
    position: relative;
}

.atr-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* Progress Bar Styles */
.atr-progress-modern .atr-progress-bar {
    height: 10px;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.atr-progress-classic .atr-progress-bar {
    height: 20px;
    border-radius: 10px;
}

.atr-progress-minimal .atr-progress-bar {
    height: 4px;
    border-radius: 2px;
}

/* Progress Fill */
.atr-progress-fill-bar {
    width: var(--progress);
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    transition: width 0.5s ease;
}

.atr-progress-modern .atr-progress-fill-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.atr-progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    animation: progress-glow 2s linear infinite;
}

@keyframes progress-glow {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(30px); }
}

/* Spots Warning */
.atr-spots-warning {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Additional Info */
.atr-additional-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.atr-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.atr-info-icon {
    color: var(--primary-color);
    font-size: 16px;
}

/* Actions */
.atr-actions {
    margin-top: 30px;
}

/* Button Styles */
.atr-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.atr-button-primary {
    background: var(--primary-color);
    color: white;
}

.atr-button-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.atr-button-secondary {
    background: var(--secondary-color);
    color: white;
}

.atr-button-secondary:hover {
    background: var(--primary-color);
}

.atr-button-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.atr-button-outline:hover {
    background: var(--primary-color);
    color: white;
}

.atr-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.atr-button-icon {
    transition: transform 0.3s ease;
}

.atr-button:hover .atr-button-icon {
    transform: translateX(4px);
}

/* Full State */
.atr-full .atr-progress-fill-bar {
    background: var(--accent-color);
}

.atr-full .atr-button-primary {
    background: var(--accent-color);
}

/* Animations */
.atr-animated {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Editor Preview */
.atr-editor-preview {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.atr-editor-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .atr-card {
        flex-direction: column;
        gap: 0;
    }
    
    .atr-image-right .atr-card {
        flex-direction: column;
    }
    
    .atr-image-container {
        width: 100%;
        max-width: none;
        height: 250px;
    }
    
    .atr-content {
        padding: 25px;
    }
    
    .atr-title {
        font-size: 24px;
    }
    
    .atr-subtitle {
        font-size: 16px;
    }
    
    .atr-circular-progress {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }
    
    .atr-progress-number {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .atr-content {
        padding: 20px;
    }
    
    .atr-title {
        font-size: 20px;
    }
    
    .atr-button {
        width: 100%;
        justify-content: center;
    }
    
    .atr-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Print Styles */
@media print {
    .atr-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .atr-button {
        display: none;
    }
}