:root {
    --espn-red: #cc0000;
    --espn-dark-red: #990000;
    --espn-black: #000000;
    --espn-gray: #666666;
    --espn-light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--espn-light-gray) 0%, #e8e8e8 100%);
    min-height: 100vh;
    color: var(--espn-black);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.espn-logo {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--espn-red);
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.university-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--espn-black);
    margin-bottom: 0.25rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--espn-gray);
    font-weight: 400;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tools-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--espn-black);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tools-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 800px;
    margin: 0 auto;
}

.tool-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--espn-red), var(--espn-dark-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--espn-red);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--espn-red), var(--espn-dark-red));
    border-radius: 50%;
    color: var(--white);
    flex-shrink: 0;
}

.tool-info {
    flex: 1;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--espn-black);
    margin-bottom: 0.5rem;
}

.tool-description {
    font-size: 0.9rem;
    color: var(--espn-gray);
    line-height: 1.5;
}

.tool-arrow {
    font-size: 1.5rem;
    color: var(--espn-red);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-arrow {
    transform: translateX(4px);
}

/* XMLSync specific styles */
.xmlsync-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem;
}

/* Defunct card styles */
.defunct-card {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.defunct-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.03) 10px,
        rgba(0, 0, 0, 0.03) 20px
    );
    pointer-events: none;
}

.defunct-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    background: var(--espn-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.xmlsync-card .tool-info {
    text-align: center;
}

.tool-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.download-btn,
.docs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.download-btn {
    background: linear-gradient(135deg, var(--espn-red), var(--espn-dark-red));
    color: var(--white);
    box-shadow: 0 2px 4px rgba(204, 0, 0, 0.2);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--espn-dark-red), var(--espn-red));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
    color: var(--white);
}

.docs-btn {
    background: var(--white);
    color: var(--espn-black);
    border: 2px solid var(--espn-red);
}

.docs-btn:hover {
    background: var(--espn-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
}

.btn-icon {
    font-size: 1rem;
}

/* Responsive adjustments for XMLSync buttons */
@media (max-width: 480px) {
    .tool-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .download-btn,
    .docs-btn {
        width: 100%;
        min-width: auto;
    }
}

.footer {
    margin-top: auto;
    padding: 2rem 0 1rem;
    text-align: center;
}

.footer-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.created-by {
    font-size: 0.9rem;
    color: var(--espn-gray);
    font-weight: 500;
}

.copyright {
    font-size: 0.85rem;
    color: var(--espn-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.copyright:hover {
    color: var(--espn-red);
}

/* Password Section */
.password-section {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid var(--espn-red);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.password-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.password-message {
    font-size: 0.9rem;
    color: var(--espn-gray);
    margin-bottom: 1rem;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

.password-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.password-input {
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: var(--espn-light-gray);
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    color: var(--espn-black);
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--espn-red);
    background: var(--white);
}

.copy-btn {
    padding: 0.75rem 1.25rem;
    background: var(--espn-red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--espn-dark-red);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: #28a745;
}

.copy-feedback {
    display: none;
    text-align: center;
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .espn-logo {
        font-size: 2.5rem;
    }
    
    .university-name {
        font-size: 1.25rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .tool-info {
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .tools-section {
        padding: 1.5rem;
    }
    
    .tool-card {
        padding: 1.25rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.tool-card:focus {
    outline: 3px solid var(--espn-red);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .tool-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
