html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

:root {
  /* Soft Pastel Renkler */
  --bs-primary: #D8A7B1; /* Soft Pembe */
  --bs-primary-rgb: 216, 167, 177;
  --bs-secondary: #B6D7CF; /* Soft Mint Yeşili */
  --bs-secondary-rgb: 182, 215, 207;
  --bs-success: #AED9E0; /* Soft Mavi */
  --bs-success-rgb: 174, 217, 224;
  --bs-info: #FFC8DD; /* Soft Şeker Pembe */
  --bs-info-rgb: 255, 200, 221;
  --bs-warning: #FAF0CA; /* Soft Krem */
  --bs-warning-rgb: 250, 240, 202;
  --bs-danger: #F4ACBE; /* Soft Gül */
  --bs-danger-rgb: 244, 172, 190;
  --bs-light: #FAF3F3; /* Çok Açık Pembe/Krem */
  --bs-light-rgb: 250, 243, 243;
  --bs-dark: #6E7C7C; /* Soft Gri */
  --bs-dark-rgb: 110, 124, 124;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
}

/* Loading animation */
.ai-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ai-loading-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Favicon Animation */
.favicon-animation {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.favicon-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(216, 167, 177, 0.7);
    animation: favicon-pulse 1.5s ease-in-out infinite, favicon-rotate 3s linear infinite;
}

@keyframes favicon-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(216, 167, 177, 0.5);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 25px rgba(216, 167, 177, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(216, 167, 177, 0.5);
    }
}

@keyframes favicon-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Original spinner code - keeping for reference */
.ai-loading-spinner {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    position: relative;
    display: none; /* Hide the original spinner */
}

.ai-loading-spinner div {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bs-primary, #D8A7B1);
    animation: ai-loading-spinner 1.2s linear infinite;
    box-shadow: 0 0 10px rgba(216, 167, 177, 0.5);
}

.ai-loading-spinner div:nth-child(1) {
    top: 8px;
    left: 8px;
    animation-delay: 0s;
}

.ai-loading-spinner div:nth-child(2) {
    top: 8px;
    left: 32px;
    animation-delay: -0.4s;
}

.ai-loading-spinner div:nth-child(3) {
    top: 8px;
    left: 56px;
    animation-delay: -0.8s;
}

.ai-loading-spinner div:nth-child(4) {
    top: 32px;
    left: 8px;
    animation-delay: -0.4s;
}

.ai-loading-spinner div:nth-child(5) {
    top: 32px;
    left: 32px;
    animation-delay: -0.8s;
}

.ai-loading-spinner div:nth-child(6) {
    top: 32px;
    left: 56px;
    animation-delay: -1.2s;
}

.ai-loading-spinner div:nth-child(7) {
    top: 56px;
    left: 8px;
    animation-delay: -0.8s;
}

.ai-loading-spinner div:nth-child(8) {
    top: 56px;
    left: 32px;
    animation-delay: -1.2s;
}

.ai-loading-spinner div:nth-child(9) {
    top: 56px;
    left: 56px;
    animation-delay: -1.6s;
}

@keyframes ai-loading-spinner {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.ai-loading-text {
    font-size: 1.4rem;
    color: var(--bs-primary, #D8A7B1);
    text-align: center;
    max-width: 80%;
    margin-top: 25px;
    font-weight: 600;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
}

.ai-loading-progress {
    width: 300px;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ai-loading-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--bs-primary, #D8A7B1), #F4ACBE);
    border-radius: 10px;
    width: 0%;
    animation: ai-progress-bar 2s ease-in-out infinite;
    box-shadow: 0 0 5px rgba(216, 167, 177, 0.5);
}

@keyframes ai-progress-bar {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}

/* Outfit card styling */
.outfit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outfit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Outfit image container with overlay */
.outfit-image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    width: 100%;
}

.outfit-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.outfit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(216, 167, 177, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.outfit-image-container:hover .outfit-image {
    transform: scale(1.05);
}

.outfit-image-container:hover .outfit-overlay {
    opacity: 1;
}

/* Responsive image sizing for different screen sizes */
@media (max-width: 991.98px) {
    .outfit-image-container {
        aspect-ratio: 3/2;
    }
}

@media (max-width: 767.98px) {
    .outfit-image-container {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 575.98px) {
    .outfit-image-container {
        aspect-ratio: 1/1;
    }
}

/* Forum styling */
.forum-post {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.comment {
    padding: 10px;
    margin-top: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.reply {
    margin-left: 30px;
    padding: 10px;
    margin-top: 5px;
    background-color: #f1f1f1;
    border-radius: 5px;
}

/* Rating stars */
.rating-stars {
    color: #ffc107;
}

/* User profile styling */
.profile-header {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* File upload styling */
.custom-file-upload {
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Carousel styling */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    object-fit: contain;
    height: 100%;
    width: 100%;
    background-color: #f8f9fa;
}

/* Animation */
.fade-in {
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* New Styles for Modern Design */

/* Hero Section */
.hero-carousel {
    margin-top: -24px;
    overflow: hidden;
}

.hero-item {
    height: 400px;
    position: relative;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
    font-size: 2rem;
}

/* Card hover effects */
.hover-card {
    transition: all 0.3s ease;
    border: none;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Avatar circle for forum posts */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Background gradient for CTA */
.bg-gradient-primary {
    background: linear-gradient(45deg, var(--bs-primary, #D8A7B1), var(--bs-info, #FFC8DD));
}

/* Animate.css classes */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Bootstrap 5 Improvements */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--bs-primary, #D8A7B1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bs-light, #FAF3F3);
    padding-left: 1.5rem;
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn:hover::after {
    width: 200%;
    height: 200%;
}

/* Form improvements */
.input-group .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus + .input-group-text {
    border-color: var(--bs-primary, #D8A7B1);
    box-shadow: none;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--bs-primary, #D8A7B1);
}

/* Carousel button specific styling */
.hero-carousel .btn {
    position: relative;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-carousel .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-carousel .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-item {
    height: 100%;
}

/* Responsive Forum Styles */
.scrolling-wrapper-sm {
    -webkit-overflow-scrolling: touch;
}

.scrolling-wrapper-sm::-webkit-scrollbar {
    display: none;
}

.scrolling-wrapper-sm {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 767.98px) {
    .w-md-auto {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .w-sm-auto {
        width: 100%;
    }
}

@media (min-width: 576px) {
    .w-sm-auto {
        width: auto !important;
    }
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
    
    .text-md-end {
        text-align: right !important;
    }
}

/* Hero item height */
.hero-item {
    height: 100%;
}

/* Responsive carousel height */
@media (max-width: 991.98px) {
    .carousel-item {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 350px;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 300px;
    }
} 