/* ==========================================
   CRESCENT POOL SUPPLY - STYLES
   Aqua & Silver Theme
   ========================================== */

/* CSS Variables */
:root {
    --aqua-primary: #00BCD4;
    --aqua-light: #4DD0E1;
    --aqua-dark: #0097A7;
    --silver: #C0C0C0;
    --silver-light: #E8E8E8;
    --silver-dark: #999999;
    --dark-bg: #1A1A2E;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #ECEFF1;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--aqua-dark) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tagline {
    color: var(--aqua-light);
    font-size: 0.9rem;
    font-weight: 300;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--aqua-light);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--aqua-primary), var(--aqua-light));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--silver);
}

.btn-secondary:hover {
    background: var(--silver);
    color: var(--dark-bg);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#heroVideo::-webkit-media-controls {
    z-index: 2147483647;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--aqua-dark) 0%, var(--dark-bg) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.video-placeholder p {
    font-size: 1.5rem;
    font-weight: 300;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: var(--white);
    pointer-events: auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--aqua-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Legacy Section */
.legacy {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--white) 100%);
}

.legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.legacy-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.legacy-item:hover {
    transform: translateY(-5px);
}

.legacy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.legacy-item h3 {
    color: var(--aqua-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.legacy-item p {
    color: var(--text-dark);
    font-weight: 300;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    color: var(--aqua-dark);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}
/* Reviews Section */
.reviews {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--white) 100%);
}

.reviews h2 {
    text-align: center;
    color: var(--aqua-dark);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.reviews-rating {
    text-align: left;
}

.reviews-rating .stars {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rating-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--aqua-dark);
    margin-bottom: 0.25rem;
}

.review-count {
    color: var(--silver-dark);
    font-size: 0.9rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card-placeholder {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: var(--silver-dark);
}

.review-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--aqua-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.review-author {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.review-stars {
    color: #FFB800;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.review-time {
    color: var(--silver-dark);
    font-size: 0.85rem;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}
/* Reviews Section */
.reviews {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--white) 100%);
}

.reviews h2 {
    text-align: center;
    color: var(--aqua-dark);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.reviews-rating {
    text-align: left;
}

.stars {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #FFB800;
}

.rating-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aqua-dark);
    margin-bottom: 0.25rem;
}

.review-count {
    color: var(--silver-dark);
    font-size: 1rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--aqua-dark);
    font-size: 1.1rem;
}

.review-stars {
    color: #FFB800;
    font-size: 1rem;
}

.review-date {
    color: var(--silver-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
}

.review-card-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--silver-dark);
    grid-column: 1 / -1;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--aqua-dark) 100%);
    color: var(--white);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--aqua-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
}

.phone-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.phone-link:hover {
    color: var(--aqua-light);
}

.contact-link {
    color: var(--aqua-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--white);
}

.contact-hours {
    font-size: 0.9rem;
    color: var(--silver-light);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--aqua-light);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--silver);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--aqua-light);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--silver);
    font-size: 0.9rem;
}

/* ==========================================
   ADMIN STYLES
   ========================================== */

.admin-body {
    background: var(--silver-light);
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--aqua-dark) 100%);
}

.login-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--aqua-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--silver-dark);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--silver-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--aqua-primary);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Admin Dashboard */
.admin-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--aqua-dark) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
}

.admin-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-main {
    padding: 2rem 0;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-card h2 {
    color: var(--aqua-dark);
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--silver-dark);
    margin-bottom: 2rem;
}

/* File Upload */
.upload-area {
    margin-bottom: 2rem;
}

.file-input {
    display: none;
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border: 3px dashed var(--silver);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--silver-light);
}

.upload-label:hover {
    border-color: var(--aqua-primary);
    background: rgba(0, 188, 212, 0.05);
}

.upload-icon {
    font-size: 3rem;
}

.upload-text {
    display: flex;
    flex-direction: column;
}

.upload-text strong {
    color: var(--aqua-dark);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.upload-text span {
    color: var(--silver-dark);
    font-size: 0.9rem;
}

/* Progress Bar */
.upload-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--silver-light);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--aqua-primary), var(--aqua-light));
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: var(--aqua-dark);
    font-weight: 600;
}

/* Current Info */
.current-info {
    background: var(--silver-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.current-info h3 {
    color: var(--aqua-dark);
    margin-bottom: 1rem;
}

.info-text {
    color: var(--text-dark);
    word-break: break-all;
}

.video-preview {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Form Styles */
.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--silver-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--aqua-primary);
}

/* Status Message */
.status-message {
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero {
        height: 100vh;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-grid,
    .legacy-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .reviews-rating {
        text-align: center;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .upload-label {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
}
