/* Dub font */
@font-face {
    font-family: 'Dub';
    src: url('../fonts/dub.woff2') format('woff2'),
        url('../fonts/dub.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: 300;
    line-height: 1.75;
    color: #353535;
    background: #f2e2c4;
}

/* Logo styling */
.logo h1 {
    font-family: 'Dub', 'Arial Black', sans-serif;
    font-size: 4em;
    text-align: center;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.02em;
}

.logo h1 a {
    text-decoration: none;
}

.dub {
    color: #3A54A4;
}

.ana {
    color: #7C287D;
}

.log {
    color: #6EBE45;
}

/* Navigation */
header {
    background: #f2e2c4;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 16px;
    max-width: 840px;
    margin: 0 auto;
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #353535;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a.active,
nav a:hover {
    color: #3A54A4;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #353535;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main content */
main {
    max-width: 840px;
    margin: 1.5em auto;
    padding: 0 16px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Separators */
.separator {
    border: none;
    border-bottom: 2px solid #c2c2c2;
    margin: 2rem auto;
    width: 100px;
}

/* Navigation dropdown styles */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent #353535;
    will-change: transform;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
    vertical-align: middle;
}


/* Desktop: right arrow starts as down arrow, rotates up when active */
@media (min-width: 835px) {
    .dropdown-arrow {
        transform: rotate(0deg);
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Mobile navigation and dropdown */
@media (max-width: 834px) {
    /* Arrow rotation */
    .dropdown-arrow { 
        transform: rotate(0deg); 
    }
    .dropdown.active .dropdown-arrow { 
        transform: rotate(90deg); 
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #353535;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f8f8;
    color: #3A54A4;
}

/* Homepage specific styles */
.hero-section {
    text-align: center;
    margin: 3rem 0 4rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f5e6c8 0%, #ead5b3 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(194, 194, 194, 0.3);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #3A54A4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #7C287D;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-description p {
    margin: 0 0 1rem 0;
    color: #353535;
}

.hero-highlight {
    font-weight: 600;
    color: #6EBE45;
    font-size: 1.15rem;
}


/* Hero announcement for guide pages */
.hero-announcement {
    text-align: center;
    margin: 3rem 0;
}

.hero-announcement h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3A54A4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}


/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3A54A4;
    text-align: center;
    margin: 0 0 2rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Desktop Apps Section */
.apps-section {
    margin: 3rem 0;
}

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

.product-card {
    background: linear-gradient(135deg, #FFF8E1 0%, #F3E5AB 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #FFD54F;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* CrewFile Section */
.crewfile-section {
    margin: 3rem 0;
}

.crewfile-intro {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.crewfile-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    color: #7C287D;
    margin: 0 0 2rem 0;
    font-weight: 500;
}

.crewfile-cta {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crewfile-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #F7931E 0%, #FF6B35 100%);
}

.product-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3A54A4;
    margin: 0 0 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.product-tagline {
    font-size: 1.1rem;
    font-style: italic;
    color: #7C287D;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.product-description {
    margin: 1rem 0 1.5rem 0;
    flex-grow: 1;
}

.product-description p {
    margin: 0 0 0.8rem 0;
    line-height: 1.6;
    color: #353535;
}

.product-highlight {
    font-weight: 600;
    color: #6EBE45;
    font-size: 1.05rem;
}

.product-status {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(194, 194, 194, 0.3);
}

.product-status.available {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.product-status.available span {
    font-weight: 600;
    color: #6EBE45;
    font-size: 1.1rem;
}

.product-status:not(.available) {
    text-align: center;
    font-weight: 600;
    color: #7C287D;
    font-size: 1.1rem;
}

.store-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.store-link:hover {
    transform: scale(1.05);
}

.store-link img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.store-placeholder {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}


/* CrewFile Carousel Styles */
.crewfile-carousel {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 12px;
    background: #ffffff;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: #ff5722;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: #ff7043;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #ff5722;
    transition: width 0.1s linear;
    z-index: 5;
}

/* Guide content styles */
.guide-content h1 {
    color: #353535;
    font-weight: 900;
    margin: 0 0 2rem;
    text-align: center;
    font-size: 2.5rem;
}

.guide-content h2 {
    margin: 2rem 0 1rem;
    color: #3A54A4;
    font-size: 1.8rem;
}

.guide-content h3 {
    margin: 1.5rem 0 1rem;
    color: #7C287D;
    font-size: 1.4rem;
}

.guide-content p {
    margin: 0 0 1em;
}

.guide-content ol,
.guide-content ul {
    margin: 0 0 1em 1em;
}

.guide-content li {
    margin-bottom: 0.5em;
}

.guide-content ol ol,
.guide-content ul ul {
    margin-top: 0.5em;
}

.guide-content a {
    color: #3A54A4;
    text-decoration: underline;
}

.guide-content a:hover {
    color: #7C287D;
}

/* Images */
.guide-image {
    text-align: center;
    margin: 2rem 0;
}

.guide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.guide-image img:hover {
    transform: scale(1.02);
}

/* Video container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

/* Code styling */
code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Strong text styling */
strong {
    font-weight: 600;
    color: #2c2c2c;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid #c2c2c2;
    color: #666;
    font-size: 0.9rem;
    background: #f2e2c4;
}

/* Responsive design */
@media (max-width: 834px) {
    nav {
        padding: 0.5rem 16px;
    }

    .logo h1 {
        font-size: 2.5em;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 2rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
    }

    /* Mobile dropdown panel */
    .dropdown-menu {
        position: static;
        margin-top: 0.5rem;
        background: #f8f8f8;
        border: 0;
        box-shadow: none;
        border-radius: 8px;
        width: 100%;
        padding: 0.5rem 0;

        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    .dropdown.active .dropdown-menu {
        max-height: 600px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        color: #666;
    }

    .dropdown-menu a:hover {
        background: #f0f0f0;
    }

    main {
        padding: 0 1rem;
        margin-top: 0.5rem;
    }

    /* Section and content styles */
    .section-title {
        font-size: 2rem;
    }

    .hero-announcement h2 {
        font-size: 2rem;
    }

    /* Apps grid mobile layout */
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .product-header h3 {
        font-size: 1.5rem;
    }
    
    .store-link img {
        max-width: 150px;
    }

    /* CrewFile mobile styles */
    .crewfile-subtitle {
        font-size: 1.1rem;
    }
    
    .crewfile-cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .guide-content h1 {
        font-size: 2rem;
    }

    .carousel-nav {
        padding: 10px 15px;
        font-size: 16px;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    .carousel-dots {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2em;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .hero-announcement h2 {
        font-size: 1.6rem;
    }

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

    .carousel-nav {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Print styles */
@media print {

    header,
    footer,
    .carousel-nav,
    .carousel-dots {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .guide-content h1 {
        font-size: 18pt;
        page-break-after: avoid;
    }

    .guide-content h2 {
        font-size: 14pt;
        page-break-after: avoid;
    }

    .guide-image {
        page-break-inside: avoid;
    }
}