/*
==========================================================================
 BUTTONS STYLESHEET (Version 4.0 - Cleaned up)
 Contains only the styles for normal, reusable buttons.
==========================================================================
*/

/* -------------------------------------------------------------------------- */
/* # Base style for buttons (.btn)
/* -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    border-radius: 35px; /* Slightly larger for the new size */
    /* Padding and font size increased */
    padding: 15px 35px; 
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}

/* -------------------------------------------------------------------------- */
/* # 2. Call-to-action Buttons in the normal product cards (produkte.html)
/* -------------------------------------------------------------------------- */
.btn-cta {
    /* Padding and font size increased */
    font-size: 1em;
    padding: 12px 22px;
    border-radius: 25px; /* Slightly larger */
    position: absolute;
    bottom: 30px; /* A bit more spacing below */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .btn-cta {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* --- Diamond, Platinum, Gold, Silver, Bronze, Copper --- */
.btn-cta-diamond,
.btn-cta-platinum,
.btn-cta-gold,
.btn-cta-silver,
.btn-cta-bronze,
.btn-cta-copper {
    background-color: #333;
    color: white;
}
.btn-cta-diamond:hover,
.btn-cta-platinum:hover,
.btn-cta-gold:hover,
.btn-cta-silver:hover,
.btn-cta-bronze:hover,
.btn-cta-copper:hover {
    background-color: #555;
}

/* --- Demo --- */
.btn-cta-demo {
    background-color: #44A9F8; /* Website accent color (swp-accent-blue) */
    color: #ffffff;
    border: none;
}
.btn-cta-demo:hover {
    background-color: #2196F3; /* Slightly darker on hover */
    color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* # 3. APP SECTION Button (app.html)
/* -------------------------------------------------------------------------- */
.btn-app {
    background-color: #2196F3;
    color: #ecf0f1;
}
.btn-app:hover {
    background-color: #1976D2;
}

/* ========================================================== */
/* PRODUCT CARD STYLES (Moved to buttons.css)        */
/* ========================================================== */

/* CORRECTED CARD COLOR VARIABLES with the desired values */
:root {
    --color-diamond: #42A5F5;   /* For MixTRAL Q4 KM */
    --color-platinum: #9E9E9E; /* Keep as before, as not explicitly mentioned, but important for the card */
    --color-gold: #FFD700;      /* For MixTRAL Q2 KM */
    --color-silver: #B0C4DE;    /* For Llama 3 8b */
    --color-bronze: #CD7F32;    /* For Phi 3 */
    --color-copper: #B87333;    /* For Gemma 2b */
    --shadow-medium: rgba(0, 0, 0, 0.5); /* Also define here, as used in card styles */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    perspective: 1000px;
    margin-bottom: 100px; /* This value is set by produkte.html, but for safety also here */
}

/* Special flexbox rule for single-card grids (flagship and demo) */
.product-grid-single {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    perspective: 1000px;
    margin-bottom: 100px;
}

.product-card {
    padding: 30px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    box-shadow: 0 5px 12px var(--shadow-medium);
    transform-style: preserve-3d;
    transition: transform 0.1s linear, box-shadow 0.3s ease;
}

.product-card h4 { font-size: 1.8em; font-weight: 700; margin-bottom: 15px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.product-card p { font-size: 1.1em; margin-bottom: 25px; color: var(--text-color-muted); }

.card-tier-flagship { 
    min-height: 520px; 
    max-width: 600px;  /* Much wider - almost twice as wide */
    width: 100%;       /* Uses available space */
}
.card-tier-flagship h4 { font-size: 2.4em; } /* Slightly larger */
.card-tier-flagship p { font-size: 1.2em; line-height: 1.7; }

.card-tier-mid { 
    grid-column: span 2; 
    min-height: 380px; 
}

.card-tier-entry { 
    grid-column: span 2; 
    min-height: 320px; 
}

.card-tier-demo { 
    min-height: 320px; 
    /* Grid-column no longer needed with flexbox */
}

/* Test version card: Like the original tiny card, with zoom effect */
.card-demo { 
    background-color: #2c3e50; /* Similar to the original tiny color */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Own transition for smooth zoom */
}
.card-demo h4, .card-demo p { color: #ecf0f1; text-shadow: none; }

/* Zoom effect for demo cards - 3D forward without movement */
.card-demo:hover {
    transform: scale(1.03) !important; /* Only zoom, overrides the general rule */
    box-shadow: 0 8px 16px rgba(0,0,0,0.4) !important; /* Slightly stronger shadow */
    cursor: pointer; /* Pointer cursor for clickability */
}

.card-ultimate { background: radial-gradient(circle at 50% 100%, #8E24AA 0%, #4224AA 30%, #1A242F 65%); box-shadow: 0 8px 20px rgba(0,0,0,0.7), 0 0 30px rgba(142, 36, 170, 0.6); }
.card-ultimate h4, .card-ultimate p { color: #ecf0f1 !important; text-shadow: 0 0 15px rgba(220, 180, 255, 0.9); transform: translateZ(60px); }
.card-ultimate .stars-1, .card-ultimate .stars-2, .card-ultimate .stars-3 { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border-radius: 25px; transition: transform 0.2s linear; animation: subtle-drift 100s linear infinite alternate; }
.card-ultimate .stars-1 { background-image: radial-gradient(1px 1px at 25% 25%, white, transparent), radial-gradient(1px 1px at 55% 65%, white, transparent), radial-gradient(1px 1px at 90% 10%, white, transparent), radial-gradient(1px 1px at 10% 80%, white, transparent); transform: translateX(var(--mouse-x-1, 0px)) translateY(var(--mouse-y-1, 0px)) translateZ(10px); }
.card-ultimate .stars-2 { background-image: radial-gradient(1.5px 1.5px at 15% 50%, white, transparent), radial-gradient(1.5px 1.5px at 75% 85%, white, transparent), radial-gradient(1.5px 1.5px at 40% 15%, white, transparent); animation-duration: 80s; animation-direction: alternate-reverse; transform: translateX(var(--mouse-x-2, 0px)) translateY(var(--mouse-y-2, 0px)) translateZ(30px); }
.card-ultimate .stars-3 { background-image: radial-gradient(2px 2px at 50% 30%, white, transparent), radial-gradient(2px 2px at 5% 95%, white, transparent); animation-duration: 60s; transform: translateX(var(--mouse-x-3, 0px)) translateY(var(--mouse-y-3, 0px)) translateZ(50px); }
@keyframes subtle-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

.card-diamond { background-color: var(--color-diamond); background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 60%); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 25px var(--color-diamond); }
.card-diamond h4, .card-diamond p { color: #1A242F; text-shadow: none; }
.sparkle { position: absolute; width: 6px; height: 6px; background-color: white; border-radius: 50%; box-shadow: 0 0 10px 3px white, 0 0 20px 6px rgba(173, 216, 230, 0.7); opacity: 0; animation: sparkle 4s linear infinite; }
.sparkle-1 { top: 20%; left: 30%; animation-duration: 3s; animation-delay: 0.5s; }
.sparkle-2 { top: 50%; left: 80%; animation-duration: 4s; animation-delay: 0.2s; }
.sparkle-3 { top: 85%; left: 40%; animation-duration: 3.5s; animation-delay: 1.2s; }
.sparkle-4 { top: 15%; left: 70%; animation-duration: 4.2s; animation-delay: 2.1s; }
.sparkle-5 { top: 70%; left: 15%; animation-duration: 3.8s; animation-delay: 0.8s; }
.sparkle-6 { top: 40%; left: 50%; animation-duration: 3.2s; animation-delay: 2.5s; }
.sparkle-7 { top: 90%; left: 90%; animation-duration: 4.5s; animation-delay: 1.8s; }
.sparkle-8 { top: 5%; left: 20%; animation-duration: 3.6s; animation-delay: 3.1s; }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(0.5); } 10% { opacity: 1; transform: scale(1.2); } 20% { opacity: 0; transform: scale(0.5); } }

/* PLATINUM CARD STYLE - FOR MIXTRAL Q3 KM */
.card-platinum { 
    background-color: #BDBDBD; 
    background-image: linear-gradient(135deg, #F5F5F5 10%, #9E9E9E 80%); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 2px 3px rgba(0,0,0,0.2); 
}
.card-platinum h4, .card-platinum p { color: #333; text-shadow: none; }
/* The diagonal shine effect of the platinum card */
.card-platinum::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -80%; 
    width: 50%; 
    height: 100%; 
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); 
    transform: skewX(-25deg); 
    animation: sheen 5s infinite linear; 
    animation-delay: 2s; 
}

/* GOLD AND SILVER CARD STYLES - RECEIVE THE PLATINUM SHINE EFFECT */
.card-gold h4, .card-gold p, .card-silver h4, .card-silver p, .card-bronze h4, .card-bronze p, .card-copper h4, .card-copper p { color: #1A242F; text-shadow: none; }
.card-gold, .card-silver, .card-bronze, .card-copper { border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.card-gold { background-color: var(--color-gold); }
.card-silver { background-color: var(--color-silver); }
.card-bronze { background-color: var(--color-bronze); }
.card-copper { background-color: var(--color-copper); }

/* IMPORTANT: Apply the platinum card shine effect to gold and silver */
.card-gold::before, .card-silver::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -80%; /* Start position of the shine stripe (from left outside the card) */
    width: 50%; /* Width of the shine stripe */
    height: 100%; 
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); /* The shine gradient */
    transform: skewX(-25deg); /* The diagonal inclination of the shine stripe */
    animation: sheen 5s infinite linear; 
    animation-delay: 2s; 
}

/* BRONZE AND COPPER CARDS - RECEIVE THE WEAK, VERTICAL shine effect */
/* I ensure that this rule only applies to bronze and copper and leaves others untouched. */
.card-bronze::before, .card-copper::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border-radius: 25px; 
    background-image: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 80%, rgba(255,255,255,0) 100%); /* Weaker shine */
    background-size: 200% 100%; 
    animation: metal-shine 4s infinite linear; 
    mix-blend-mode: overlay; /* To make the shine more subtle over the color */
    opacity: 0.7; /* Slightly reduced opacity */
    /* Here no transform: skewX(-25deg) is needed, as it is vertical/horizontal */
}


/* Keyframes for the diagonal shine effect (sheen) */
@keyframes sheen { 
    100% { left: 130%; } 
}

/* Keyframes for the vertical/horizontal shine effect (metal-shine) */
@keyframes metal-shine { 
    from { background-position: -50% 0%; } 
    to { background-position: 150% 0%; } 
}

/* Responsive adjustment for the grid */
@media (max-width: 1200px) {
    .card-tier-flagship,
    .card-tier-mid {
        grid-column: span 6;
    }
}
@media (max-width: 768px) {
    .card-tier-flagship,
    .card-tier-mid,
    .card-tier-entry {
        grid-column: span 6;
        min-height: auto;
    }
}