/**
 * ASTROGUIDE.SE - Main Stylesheet
 */

:root {
    --primary-color: #6f42c1;
	--bs-primary-rgb:37,102,154;
    --secondary-color: #fd7e14;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --light-text: #f8f9fa;
    --gold: #ffd700	
}

/* =====================
   GENERAL STYLES
   ===================== */

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--light-text);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* =====================
   HERO SECTION
   ===================== */

.hero-section {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.3) 0%, rgba(22, 33, 62, 0.5) 100%);
    border-bottom: 3px solid var(--gold);
    min-height: 500px;
    display: flex;
    align-items: center;
	padding: 70px 0 40px 0 !important;
}

.card-preview-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* =====================
   READING TYPE CARDS
   ===================== */

.reading-type-card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    transition: all 0.3s ease;
    overflow: hidden;
}

.reading-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(111, 66, 193, 0.3) !important;
}

.reading-type-card .card-body {
    position: relative;
}

.reading-icon {
    transition: transform 0.3s ease;
}

.reading-type-card:hover .reading-icon {
    transform: scale(1.1) rotate(5deg);
}

/* =====================
   CARD DECK & DRAWING
   ===================== */

.card-deck-container {
    padding: 40px 20px;
    text-align: center;
}

.deck {
    display: inline-block;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.deck:hover {
    transform: scale(1.05);
}

.card-back-stack {
    position: relative;
    width: 200px;
    height: 300px;
    margin: 0 auto;
}

.stacked-card {
    position: absolute;
    width: 200px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--darker-bg) 100%);
    border: 3px solid var(--gold);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stacked-card::before {
    content: "✦";
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.5;
}

.stacked-card:nth-child(1) {
    transform: rotate(-2deg) translate(-5px, -5px);
    z-index: 1;
}

.stacked-card:nth-child(2) {
    transform: rotate(0deg);
    z-index: 2;
}

.stacked-card:nth-child(3) {
    transform: rotate(2deg) translate(5px, 5px);
    z-index: 3;
}

/* =====================
   DRAWN CARDS
   ===================== */

.drawn-cards-container {
    animation: fadeIn 0.5s ease;
}

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

.drawn-card {
    animation: cardFlip 0.6s ease;
    transform-style: preserve-3d;
}

@keyframes cardFlip {
    0% { transform: rotateY(180deg) scale(0.8); }
    100% { transform: rotateY(0deg) scale(1); }
}

.drawn-card img {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.card-position-label {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* =====================
   RESULT PAGE
   ===================== */

.card-result-image {
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.reading-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* =====================
   STEP CONTAINERS
   ===================== */

.step-container {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =====================
   FORMS
   ===================== */

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* =====================
   BUTTONS
   ===================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(111, 66, 193, 0.4);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* =====================
   CARDS & MODALS
   ===================== */

.card {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
}

/* =====================
   ALERTS
   ===================== */

.alert {
    border-radius: 10px;
    border: none;
}

.alert-info {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2) 0%, rgba(13, 110, 253, 0.1) 100%);
    color: #055160;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(253, 126, 20, 0.1) 100%);
    color: #664d03;
}

.alert-success {
    color: #0f5132;
}

/* =====================
   ACCORDION (FAQ)
   ===================== */

.accordion-item {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    margin-bottom: 10px;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    color: #333;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* =====================
   FOOTER
   ===================== */

footer {
    margin-top: auto;
    border-top: 3px solid var(--gold);
}

footer a:hover {
    color: var(--gold) !important;
}

/* =====================
   LOADING SPINNER
   ===================== */

.spinner-border {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================
   UTILITIES
   ===================== */

.text-gold {
    color: var(--gold);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 70px 0 40px 0 !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card-back-stack {
        width: 150px;
        height: 225px;
    }
    
    .stacked-card {
        width: 150px;
        height: 225px;
    }
    
    .reading-content {
        padding: 20px;
        font-size: 1rem;
    }
}

/* =====================
   PRINT STYLES
   ===================== */

@media print {
    body {
        background: white;
        color: black;
    }
    
    nav, footer, .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}




#tarotDeck.drawing {
    pointer-events: none;
    opacity: 0.6;
    cursor: wait !important;
}

/* Visuell feedback när hover är aktivt */
#tarotDeck:not(.drawing) {
    cursor: pointer;
    transition: transform 0.2s ease;
}

#tarotDeck:not(.drawing):hover {
    transform: scale(1.05);
}


.hover:hover{
	cursor:pointer;
}

.sticky-top {
    z-index: 998 !important;
}