/* Koninklijke IJsclub Dockum - Custom Styles */

:root {
    --ice-blue: #87CEEB;
    --ice-blue-light: #B0E0E6;
    --ice-blue-dark: #5F9EA0;
    --accent-cyan: #00BFFF;
    --footer-dark: #1a3a4a;
    --white: #ffffff;
    --text-dark: #333333;
    --status-open: #28a745;
    --status-closed: #dc3545;
}

/* Body with ice texture gradient */
body {
    background: linear-gradient(135deg, var(--ice-blue-light) 0%, var(--ice-blue) 50%, var(--ice-blue-dark) 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Main content container */
.main-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
}

/* Navigation */
.navbar {
    background: var(--white) !important;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--text-dark) !important;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-cyan) !important;
}

.nav-link.active {
    color: var(--accent-cyan) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--accent-cyan);
}

/* Hero section */
.hero-section {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-content h1 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1877f2;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.facebook-link:hover {
    background: #166fe5;
    color: white;
}

/* IJsbaan status banner */
.status-banner {
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.status-banner.open {
    background: var(--status-open);
}

.status-banner.closed {
    background: var(--status-closed);
}

/* Content sections */
.content-section {
    padding: 2rem;
}

.content-section h2 {
    color: var(--text-dark);
    border-bottom: 3px solid var(--accent-cyan);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Two column layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

/* News items */
.news-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-cyan);
}

.news-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.news-item .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Info box */
.info-box {
    background: var(--ice-blue);
    border-radius: 10px;
    padding: 1.5rem;
    color: var(--text-dark);
}

.info-box h3 {
    margin-bottom: 1rem;
}

.info-box ul {
    margin-bottom: 0;
}

/* Form styling */
.form-container {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 255, 0.25);
}

.btn-primary {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.btn-primary:hover {
    background: #00a6d6;
    border-color: #00a6d6;
}

/* Board member table */
.board-table {
    width: 100%;
    border-collapse: collapse;
}

.board-table th,
.board-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.board-table th {
    background: var(--ice-blue-light);
    color: var(--text-dark);
    font-weight: 600;
}

.board-table tr:hover {
    background: #f8f9fa;
}

/* Document list */
.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.document-list li:hover {
    background: #f8f9fa;
}

.document-list a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}

.document-list a:hover {
    text-decoration: underline;
}

.document-list .date {
    color: #666;
    font-size: 0.9rem;
    margin-left: auto;
}

/* Webcam section */
.webcam-container {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.webcam-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sponsor-section {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 2rem;
}

.sponsor-section img {
    max-width: 200px;
    height: auto;
}

/* Contact icon box */
.contact-icon-box {
    background: var(--ice-blue);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.contact-icon-box i {
    font-size: 4rem;
    color: var(--footer-dark);
    margin-bottom: 1rem;
}

.contact-icon-box h3 {
    color: var(--text-dark);
}

/* Footer */
.site-footer {
    background: var(--footer-dark);
    color: white;
    padding: 2rem;
    margin-top: 0;
}

.site-footer h5 {
    color: var(--ice-blue-light);
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--ice-blue-light);
    text-decoration: none;
}

.site-footer a:hover {
    color: white;
}

.footer-logo {
    height: 60px;
    width: auto;
    opacity: 0.9;
}

/* Utility classes */
.text-accent {
    color: var(--accent-cyan);
}

.bg-ice {
    background: var(--ice-blue);
}

.bg-ice-light {
    background: var(--ice-blue-light);
}

/* Page title */
.page-title {
    background: linear-gradient(135deg, var(--ice-blue-light), var(--ice-blue));
    padding: 2rem;
    text-align: center;
}

.page-title h1 {
    color: var(--text-dark);
    margin: 0;
}

/* Alert messages */
.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 576px) {
    .main-container {
        margin: 10px;
        border-radius: 10px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 1rem;
    }

    .navbar-brand span {
        display: none;
    }
}
