/**
 * San Marino Photo Cosplay - Custom Styles
 * 
 * Customizzazioni Bootstrap 5 e stili specifici del sito.
 * Questo file consolida tutti gli stili custom precedentemente sparsi
 * in app.css e v5/extra.css
 * 
 * Organizzazione:
 * 1. Variabili CSS (Brand colors, spacing, etc.)
 * 2. Layout globale
 * 3. Componenti custom
 * 4. Carousel
 * 5. Utilities e helper classes
 */


/* ==========================================
   1. VARIABILI CSS (Brand Colors & Settings)
   ========================================== */

:root {
  /* Brand Colors */
  --smpc-primary: #4897c9;        /* Azzurro San Marino Photo Cosplay */
  --smpc-primary-hover: #3a7ba8;  /* Azzurro più scuro per hover */
  --smpc-primary-light: #6bb3db;  /* Azzurro più chiaro */
  --smpc-dark: #1d2124;           /* Grigio scuro per contrasto */
  
  /* Gradients SMPC */
  --smpc-gradient: linear-gradient(135deg, #4897c9 0%, #6bb3db 100%);
  --smpc-gradient-reverse: linear-gradient(135deg, #6bb3db 0%, #4897c9 100%);
  
  /* Layout */
  --smpc-navbar-height: 80px;
  
  /* Spacing */
  --smpc-section-spacing: 3rem;
}


/* ==========================================
   2. LAYOUT GLOBALE
   ========================================== */

/**
 * Padding per compensare la navbar fixed-top
 */
body {
  padding-top: var(--smpc-navbar-height);
}

/**
 * Logo navbar - limita altezza
 */
.navbar-brand img {
    max-height: 55px;  /* Altezza massima logo */
    width: auto;
    transition: max-height 0.3s;
}

/**
 * Navbar height control
 */
.navbar {
    min-height: var(--smpc-navbar-height);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/**
 * considera altezza navbar
 */
.flash-message {
    margin-top: var(--smpc-navbar-height);
    margin-bottom: 0;
    border-radius: 0;
    position: relative;
    z-index: 1040;
}


/* ==========================================
   3. COMPONENTI CUSTOM
   ========================================== */

/**
 * Feature icon container
 * Usato per icone quadrate centrate
 */
.feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  font-size: 1.5rem;
}

/**
 * Background per blog cards con immagine
 */
.bg-featured-blog {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 15rem;
}

/**
 * Portfolio item container
 */
.portfolio-item {
  margin-bottom: 30px;
}

/**
 * Toast notification container
 */
.toast-container {
  --bs-toast-zindex: 1090;
  position: absolute;
  z-index: var(--bs-toast-zindex);
  width: max-content;
  max-width: 100%;
  pointer-events: none;
}

/**
 * File upload button styling
 */
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}

/**
 * Breadcrumb 
 */
.breadcrumb-wrapper {
    background-color: rgba(72, 151, 201, 0.06);
    border-bottom: 2px solid var(--smpc-primary);
    margin-left: -15px;   /* Compensa padding container */
    margin-right: -15px;  /* Compensa padding container */
    margin-bottom: 2rem;
    padding: 0.75rem 15px;
    
}

/* Breadcrumb list */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin: 0;
}

/* Separatore */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--smpc-primary);
    padding: 0 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Link */
.breadcrumb-item a {
    color: var(--smpc-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--smpc-primary-hover);
    text-decoration: underline;
}

/* Elemento attivo (pagina corrente) */
.breadcrumb-item.active {
    color: #495057;
    font-weight: 400;
}


/* ==========================================
   4. CAROUSEL
   ========================================== */

/**
 * Carousel item con background image
 */
.carousel-item {
  height: auto;
  min-height: 300px;
  background: no-repeat center center scroll;
  background-size: cover;
}

/**
 * Force carousel images to be 100% width
 */
.carousel-item .img-fluid {
  width: 100%;
  height: auto;
}


/* ==========================================
   5. BRAND COLORS - Background & Buttons
   ========================================== */

/**
 * Background color principale SMPC
 */
.bg-smc {
  background-color: var(--smpc-primary) !important;
}
.bg-smc-grad {
  background: var(--smpc-gradient) !important;
}

/**
 * Hover states per link e bottoni con bg-smc
 */
a.bg-smc:hover,
a.bg-smc:focus,
button.bg-smc:hover,
button.bg-smc:focus {
  background-color: var(--smpc-dark) !important;
}

/**
 * Bottone brand primario
 */
.btn-smc {
  background-color: var(--smpc-primary);
  border-color: var(--smpc-primary);
  color: white;
}

.btn-smc:hover,
.btn-smc:focus {
  background-color: var(--smpc-primary-hover);
  border-color: var(--smpc-primary-hover);
  color: white;
}

/**
 * Bottone brand outline
 */
.btn-outline-smc {
  border-color: var(--smpc-primary);
  color: var(--smpc-primary);
  background-color: transparent;
}

.btn-outline-smc:hover,
.btn-outline-smc:focus {
  background-color: var(--smpc-primary);
  border-color: var(--smpc-primary);
  color: white;
}


/* ==========================================
   6. TEXT UTILITIES
   ========================================== */

/**
 * Text color brand
 */
.text-smc {
  color: var(--smpc-primary) !important;
}

.text-smc-dark {
  color: var(--smpc-dark) !important;
}


/* ==========================================
   7. RESPONSIVE ADJUSTMENTS
   ========================================== */

/**
 * Mobile: riduci padding navbar se necessario
 */
@media (max-width: 768px) {
  body {
    padding-top: calc(var(--smpc-navbar-height) - 6px);
  }
}

/* ==========================================
   KNP PAGINATION - SMPC STYLE
   ========================================== */

.pagination {
    margin: 1.5rem 0;
}

.pagination .page-item.active .page-link {
    background-color: var(--smpc-primary);
    border-color: var(--smpc-primary);
    color: white;
}

.pagination .page-link {
    color: var(--smpc-primary);
    transition: all 0.2s;
}

.pagination .page-link:hover:not(.active) {
    background-color: rgba(72, 151, 201, 0.1);
    border-color: var(--smpc-primary);
    color: var(--smpc-primary-hover);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/**
 * Sortable links con icone
 */
a.sortable {
    color: var(--smpc-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a.sortable:hover {
    color: var(--smpc-primary-hover);
}

a.sortable.sorted {
    font-weight: 600;
}


/* ==========================================
   8. UTILITIES (da espandere in futuro)
   ========================================== */

.smc-borderless {
  border: none !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-body {
    padding: 25px;
}

.card-header.bg-smc,
.card-header.bg-smc-grad {
    border: none;
}

/**
 * Aggiungere qui future utility classes custom
 * Esempio:
 * .w-100px { width: 100px; }
 * .h-200px { height: 200px; }
 */
