/* Protocols Page Layout Styles */

/* Breadcrumb Styles */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin: 0 0.75rem;
    color: #6c757d;
    font-weight: 600;
    font-size: 1.1rem;
}

.breadcrumb-link {
    color: #495057;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
    background-color: rgba(26, 63, 103, 0.1);
    text-decoration: none;
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

/* Hero Section */
.protocols-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.protocols-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.protocols-hero-content {
    position: relative;
    z-index: 2;
}

.protocols-hero h1 {
    color: var(--text-white);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.protocols-hero p {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 0;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Container */
.protocols-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Header */
.protocols-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.protocols-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(26, 63, 103, 0.3);
    animation: heroIconFloat 3s ease-in-out infinite;
}

.hero-icon svg {
    width: 40px;
    height: 40px;
}

.protocols-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.protocols-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loading-state p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.error-state h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #e74c3c;
    font-weight: 700;
}

.error-state p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.retry-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(26, 63, 103, 0.3);
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 63, 103, 0.4);
}

.retry-button:active {
    transform: translateY(0);
}

/* Animations */
@keyframes heroIconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Breadcrumb */
.breadcrumb-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 63, 103, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-light);
}

.breadcrumb-separator {
    color: #999;
    font-weight: 300;
}

.breadcrumb-current {
    color: #666;
    font-weight: 600;
}

/* Section Spacing */
section {
    margin-bottom: 3rem;
}

section:last-child {
    margin-bottom: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Initially hide competitions section until data is loaded */
.competitions-section {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
} 

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    min-width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.notification-message {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: #2d3748;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: #a0aec0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(160, 174, 192, 0.1);
    color: #718096;
}

/* Notification Types */
.notification-success {
    border-left: 4px solid #48bb78;
}

.notification-success .notification-icon {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.notification-error {
    border-left: 4px solid #f56565;
}

.notification-error .notification-icon {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.notification-warning {
    border-left: 4px solid #ed8936;
}

.notification-warning .notification-icon {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.notification-download {
    border-left: 4px solid #4299e1;
}

.notification-download .notification-icon {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.notification-info {
    border-left: 4px solid #63b3ed;
}

.notification-info .notification-icon {
    background: linear-gradient(135deg, #63b3ed, #4299e1);
    color: white;
}

/* Mobile Notifications */
@media (max-width: 768px) {
    .notification {
        top: 80px;
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: none;
        border-radius: 12px;
    }
    
    .notification-content {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }
    
    .notification-icon {
        width: 32px;
        height: 32px;
    }
    
    .notification-message {
        font-size: 0.9rem;
    }
}

/* Notification Container */
#notification-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
}

#notification-container .notification {
    pointer-events: auto;
    margin-bottom: 12px;
} 