/* ========================================
   The Oba Resort Bodrum - Custom Styles
   Color Palette: Teal, Gold, Sand, Cream
   ======================================== */

/* === GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #333;
    background-color: #faf7f2;
    overflow-x: hidden;
}

::selection {
    background: #c9a96e;
    color: #0d2f2e;
}

/* === LOADING ANIMATION === */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

@keyframes pulse-cta {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(201, 169, 110, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: #c9a96e; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse-slow 2.5s ease-in-out infinite; }
.animate-pulse-cta { animation: pulse-cta 2s ease-in-out infinite; }
.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}
.animate-kenburns { animation: kenburns 20s ease-in-out infinite alternate; }
.animate-bounce-in { animation: bounceIn 0.8s ease-out forwards; }

/* === HERO SECTION === */
.hero-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide img,
.hero-slide .bg-cover {
    transition: transform 8s ease-in-out;
}

.swiper-slide-active .hero-slide img,
.swiper-slide-active .hero-slide .bg-cover {
    transform: scale(1.08);
}

.hero-typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #c9a96e;
    animation: typewriter 3s steps(30, end) forwards, blink-cursor 0.75s step-end infinite;
    display: inline-block;
    max-width: 100%;
}

/* === PARALLAX === */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* === CARDS === */
.room-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(26, 86, 83, 0.2);
}

.room-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover img {
    transform: scale(1.1);
}

.room-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 47, 46, 0.85), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.room-card:hover .overlay {
    opacity: 1;
}

.room-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover .content {
    transform: translateY(0);
    opacity: 1;
}

/* Room card always-visible state on touch devices */
@media (hover: none) {
    .room-card .overlay {
        opacity: 1;
    }
    .room-card .content {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === FEATURE CARD === */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(201, 169, 110, 0.1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(26, 86, 83, 0.12);
    border-color: rgba(201, 169, 110, 0.3);
}

.feature-card .icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a5653, #2a7a76);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.feature-card:hover .icon-wrapper {
    background: linear-gradient(135deg, #c9a96e, #d4af37);
    transform: scale(1.1) rotate(5deg);
}

/* === GALLERY === */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 47, 46, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
    transition: transform 0.4s ease;
}

.gallery-item:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* === SECTION DIVIDER === */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.section-divider .line {
    width: 60px;
    height: 1px;
    background: #c9a96e;
}

.section-divider .diamond {
    width: 8px;
    height: 8px;
    background: #c9a96e;
    transform: rotate(45deg);
}

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #c9a96e;
    color: #0d2f2e;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 110, 0.4);
    color: #0d2f2e;
    text-decoration: none;
}

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.4s ease;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: #c9a96e;
    color: #c9a96e;
    text-decoration: none;
}

/* === COUNTER === */
.counter-item {
    text-align: center;
    padding: 24px;
}

.counter-item .number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #c9a96e;
    line-height: 1;
}

/* === FORM STYLES === */
.uk-input, .uk-select, .uk-textarea {
    border: 1px solid #e8dcc8 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    background: white !important;
}

.uk-input:focus, .uk-select:focus, .uk-textarea:focus {
    border-color: #1a5653 !important;
    box-shadow: 0 0 0 3px rgba(26, 86, 83, 0.1) !important;
    outline: none !important;
}

.uk-button-primary {
    background: #1a5653 !important;
    color: white !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    transition: all 0.4s ease !important;
    border: none !important;
    cursor: pointer;
}

.uk-button-primary:hover {
    background: #2a7a76 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(26, 86, 83, 0.3) !important;
}

.uk-checkbox {
    border-color: #c9a96e !important;
}

.uk-checkbox:checked {
    background-color: #1a5653 !important;
    border-color: #1a5653 !important;
}

/* === RESERVATION FORM === */
.reservationForm {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(201, 169, 110, 0.15);
}

.reservationForm > div {
    margin-bottom: 20px;
}

.reservationForm label {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a5653;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

/* === SWIPER CUSTOM === */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #c9a96e;
    width: 32px;
    border-radius: 6px;
}

.swiper-button-prev,
.swiper-button-next {
    color: #c9a96e !important;
    background: rgba(13, 47, 46, 0.6);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(13, 47, 46, 0.9);
    transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px !important;
    font-weight: bold;
}

/* === BACK TO TOP === */
#backToTop {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: 80;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a5653;
    color: #c9a96e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(26, 86, 83, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 16px;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: #c9a96e;
    color: #0d2f2e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}

/* === COOKIE CONSENT === */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(13, 47, 46, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookieConsent.show {
    transform: translateY(0);
}

#cookieConsent .cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

#cookieConsent p {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    flex: 1;
    min-width: 250px;
}

#cookieConsent p a {
    color: #c9a96e;
    text-decoration: underline;
}

#cookieConsent .cookie-btn {
    padding: 10px 28px;
    background: #c9a96e;
    color: #0d2f2e;
    border: none;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#cookieConsent .cookie-btn:hover {
    background: #d4af37;
    transform: translateY(-1px);
}

/* === PROSE STYLES (Policy pages) === */
.prose h3 {
    font-size: 1.15rem;
}

.prose p {
    margin-bottom: 0.75rem;
}

.prose strong {
    color: #1a5653;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f0e8;
}

::-webkit-scrollbar-thumb {
    background: #c9a96e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a5653;
}

/* === IMAGE LOADING PLACEHOLDER === */
img {
    background-color: #e8dcc8;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .counter-item .number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-typewriter {
        white-space: normal;
        border-right: none;
        animation: fadeInUp 1s ease forwards;
    }
    
    .reservationForm {
        padding: 24px;
        margin: 0 16px;
    }

    .counter-item .number {
        font-size: 32px;
    }

    .section-divider .line {
        width: 40px;
    }

    .feature-card {
        padding: 24px;
    }

    .btn-primary, .btn-outline {
        padding: 12px 24px;
        font-size: 12px;
    }

    #cookieConsent .cookie-inner {
        flex-direction: column;
        text-align: center;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .reservationForm {
        padding: 18px 14px;
        margin: 0 8px;
    }
}
