/* ============================================
   Cruise Direct - Main Stylesheet
   Soft Blue/Green Gradient Theme
   ============================================ */

/* Root Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ocean-gradient: linear-gradient(135deg, #0066cc 0%, #00cc99 100%);
    --soft-blue: #e8f4f8;
    --soft-green: #e8f8f0;
    --primary-blue: #0066cc;
    --primary-green: #00cc99;
    --accent-blue: #0052a3;
    --accent-green: #00a366;
    --text-dark: #1a2332;
    --text-light: #666666;
    --border-light: #e0e8f0;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background: var(--white);
    border-bottom: 2px solid var(--soft-blue);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    flex: 1;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--ocean-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.tagline {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ocean-gradient);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    min-height: 50px;
}

.search-btn {
    padding: 15px 40px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .search-form {
        flex-direction: column;
    }
}

/* ============================================
   Main Content Layout
   ============================================ */

.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 60px 20px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 200px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   Sidebar & Filters
   ============================================ */

.sidebar {
    background: var(--soft-blue);
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--primary-blue);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.filter-btn {
    width: 100%;
    padding: 12px;
    background: var(--ocean-gradient);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 10px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.clear-btn {
    background: var(--text-light);
    margin-bottom: 0;
}

.clear-btn:hover {
    background: var(--text-dark);
}

/* ============================================
   Cruise Grid
   ============================================ */

.cruise-grid {
    flex: 1;
}

.results-header {
    margin-bottom: 40px;
}

.results-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.results-count {
    color: var(--text-light);
    font-size: 14px;
}

.cruises-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .cruises-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .cruises-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* ============================================
   Cruise Card
   ============================================ */

.cruise-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cruise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.cruise-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--soft-green) 100%);
}

.cruise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cruise-card:hover .cruise-image img {
    transform: scale(1.05);
}

.cruise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cruise-card:hover .cruise-overlay {
    opacity: 1;
}

.view-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.view-btn:hover {
    background: var(--accent-green);
}

.cruise-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cruise-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
}

.cruise-lines {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.cruise-port {
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 12px;
}

.cruise-keywords {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
    flex: 1;
}

.cta-btn {
    display: inline-block;
    background: var(--ocean-gradient);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-btn.large {
    padding: 16px 40px;
    font-size: 16px;
    display: inline-block;
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--primary-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--soft-blue);
    border-color: var(--primary-blue);
}

.page-info {
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   No Results
   ============================================ */

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--soft-blue);
    border-radius: 12px;
}

.no-results p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
    background: var(--soft-blue);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb .container {
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ============================================
   Cruise Details Page
   ============================================ */

.cruise-details {
    padding: 40px 20px;
}

.details-hero {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.details-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px 20px 20px;
    color: var(--white);
}

.details-overlay h1 {
    font-size: 36px;
    font-weight: 700;
}

.details-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

@media (max-width: 1024px) {
    .details-content {
        grid-template-columns: 1fr;
    }
}

.details-section {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.details-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

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

.info-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 12px 0;
    color: var(--text-dark);
    font-size: 16px;
    border-bottom: 1px solid var(--border-light);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.cta-section {
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--soft-green) 100%);
    text-align: center;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* Sidebar */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.quick-info p {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-dark);
}

.quick-info strong {
    color: var(--primary-blue);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    padding: 10px 15px;
    border-radius: 6px;
    color: var(--white);
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.email {
    background: var(--primary-blue);
}

/* Related Cruises */
.related-cruises {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-light);
}

.related-cruises h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
    color: var(--white);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: var(--primary-green);
}

/* ============================================
   Utilities
   ============================================ */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cruise-card {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .details-hero {
        height: 250px;
    }
    
    .details-overlay h1 {
        font-size: 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
