/* A-Z Drone Service - FPV Tour Viewer Styles */

:root {
    --black: #000000;
    --gray: #f1f1f1;
    --white: #ffffff;
    --text: #000000;
    --border: #000000;
    --accent: #007AFF;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--gray);
    color: var(--text);
    overflow-x: hidden;
}

/* Jersey 25 Font for Headers */
h1, h2, h3, .logo {
    font-family: 'Jersey 25', Arial, Helvetica, sans-serif;
}

/* Header */
.viewer-header {
    background: var(--black);
    color: var(--white);
    padding: 20px 0;
    border-bottom: 3px solid var(--black);
}

.viewer-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
    text-decoration: none;
}

.header-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Code Entry Screen */
.code-entry-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.code-entry-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.entry-icon {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.code-entry-container h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.code-entry-container > p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Code Form */
.code-form {
    margin-bottom: 40px;
}

#projectCodeInput {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid var(--black);
    background: var(--white);
    margin-bottom: 20px;
}

#projectCodeInput:focus {
    outline: none;
    border-color: var(--black);
    background: var(--white);
}

.btn-view {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: var(--black);
    color: var(--white);
    border: 3px solid var(--black);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--white);
    color: var(--black);
}

/* Code Help */
.code-help {
    background: var(--white);
    padding: 30px;
    border: 2px solid var(--black);
    margin-bottom: 30px;
}

.code-help p {
    margin-bottom: 10px;
    font-weight: 600;
}

.code-help a {
    color: var(--black);
    text-decoration: underline;
    font-weight: 700;
}

/* Demo Access */
.demo-access {
    padding: 30px;
    background: var(--gray);
    border: 2px solid var(--black);
}

.demo-label {
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.demo-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--white);
    border: 2px solid var(--black);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-btn:hover {
    background: var(--black);
    color: var(--white);
}

.demo-btn:last-child {
    margin-bottom: 0;
}

/* Viewer Screen */
.viewer-screen {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: auto 1fr;
    height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    background: var(--white);
    border-right: 3px solid var(--black);
    overflow-y: auto;
    grid-row: 1 / 3;
}

.project-header {
    padding: 30px;
    background: var(--gray);
    border-bottom: 2px solid var(--black);
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 8px 0;
    transition: opacity 0.3s;
}

.back-btn:hover {
    opacity: 0.7;
}

.project-code {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Project Info */
.project-info {
    padding: 30px;
}

.info-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray);
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h3 {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.download-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray);
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 700;
    font-size: 0.9rem;
}

.value {
    font-weight: 600;
    text-align: right;
}

/* Download Buttons */
.download-btn {
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    background: var(--white);
    border: 2px solid var(--black);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-btn:hover {
    background: var(--black);
    color: var(--white);
}

.download-btn-primary {
    background: var(--black);
    color: var(--white);
}

.download-btn-primary:hover {
    background: var(--white);
    color: var(--black);
}

.btn-icon {
    font-size: 1.2rem;
    font-weight: 900;
}

/* Share Link */
.share-link-container {
    display: flex;
    gap: 10px;
}

.share-link-input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--black);
    background: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
}

.copy-btn {
    padding: 12px 24px;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--white);
    color: var(--black);
}

.share-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

/* Viewer Main */
.viewer-main {
    background: var(--gray);
    overflow-y: auto;
    padding: 40px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    background: var(--black);
    border: 3px solid var(--black);
    margin-bottom: 40px;
    aspect-ratio: 16 / 9;
}

#mainVideo {
    width: 100%;
    height: 100%;
    display: block;
}

.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Preview Grid */
.preview-grid {
    margin-top: 40px;
}

.preview-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.preview-card {
    position: relative;
    background: var(--black);
    border: 3px solid var(--black);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.preview-card-vertical {
    aspect-ratio: 9 / 16;
}

.preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 10px;
    font-weight: 700;
    text-align: center;
}

.preview-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.preview-card:hover .preview-play-btn {
    opacity: 1;
}

/* Project Footer */
.project-footer {
    background: var(--white);
    border-top: 3px solid var(--black);
    padding: 60px 0 30px;
    grid-column: 1 / -1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s;
}

.star-btn:hover,
.star-btn.active {
    color: #FFD700;
}

#reviewText {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--black);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    margin-bottom: 15px;
    resize: vertical;
}

.btn-footer {
    width: 100%;
    padding: 16px;
    background: var(--white);
    border: 2px solid var(--black);
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-footer:hover {
    background: var(--black);
    color: var(--white);
}

.btn-footer-primary {
    background: var(--black);
    color: var(--white);
}

.btn-footer-primary:hover {
    background: var(--white);
    color: var(--black);
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.share-btn {
    padding: 14px;
    background: var(--white);
    border: 2px solid var(--black);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-btn:hover {
    background: var(--black);
    color: var(--white);
}

.share-icon {
    font-size: 1.2rem;
    font-weight: 900;
}

/* CTA Section */
.footer-section-cta {
    background: var(--gray);
    padding: 30px;
    border: 3px solid var(--black);
}

.discount-badge {
    background: #FF0000;
    color: var(--white);
    padding: 10px 20px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

#discountCode {
    font-size: 1.3rem;
    letter-spacing: 2px;
    background: var(--white);
    padding: 5px 15px;
    border: 2px solid var(--black);
}

.package-quick-select {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-btn {
    padding: 15px;
    background: var(--white);
    border: 2px solid var(--black);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-btn:hover {
    background: var(--black);
    color: var(--white);
}

.package-name {
    font-weight: 900;
    font-size: 1rem;
}

.package-price {
    font-weight: 900;
    font-size: 1.3rem;
}

.package-was {
    font-size: 0.85rem;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid var(--gray);
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--black);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .viewer-screen {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        height: auto;
    }

    .sidebar {
        grid-row: 1;
        border-right: none;
        border-bottom: 3px solid var(--black);
    }

    .viewer-main {
        grid-row: 2;
    }

    .project-footer {
        grid-row: 3;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .preview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .viewer-header .container {
        padding: 0 20px;
    }

    .viewer-main {
        padding: 20px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }

    .preview-cards {
        grid-template-columns: 1fr;
    }

    .code-entry-container h1 {
        font-size: 2rem;
    }

    .entry-icon {
        font-size: 3rem;
    }
}
