/*
  Main Stylesheet for PC Sales Website
  Description: Core styling for the entire site
  Author: [Your Name]
  Last updated: March 2025
  
  Table of contents:
  - Base styles
  - Typography
  - Carousel
  - Content containers
  - Contact section
  - Footer
  - Back to top button
  - Error handling
*/

/* Back to Top Button */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 99;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTopBtn i {
    font-size: 45px;
    color: #81a1c1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#backToTopBtn:hover {
    transform: translateY(-5px);
}

#backToTopBtn:hover i {
    color: #88c0d0;
}

@media (max-width: 600px) {
    #backToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    #backToTopBtn i {
        font-size: 40px;
    }
}/* Back to Top Button */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(46, 52, 64, 0.85);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 99;
    transition: all 0.3s;
}

#backToTopBtn:hover {
    background-color: rgba(76, 86, 106, 1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    #backToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}/* Base styles */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
    padding: 20px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px;
}

/* Typography styles - will apply to markdown content */
h1, h2, h3 {
    margin-bottom: 15px;
    color: #81a1c1;
}

h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #3b4252;
    padding-bottom: 8px;
    margin-top: 25px;
}

h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    color: #88c0d0;
}

p {
    margin-bottom: 15px;
}

/* Lists styling */
ul, ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 5px;
}

li ul {
    margin-top: 5px;
}

/* Link styling */
a {
    color: #88c0d0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #8fbcbb;
}

/* Loading indicator */
.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #777;
}

.loading-spinner {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #5e81ac;
}

/* Error styling */
.error {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background-color: #3b4252;
    border-radius: 5px;
    border-left: 4px solid #bf616a;
}

.error i {
    font-size: 2rem;
    color: #bf616a;
    margin-bottom: 10px;
}

.error h3 {
    color: #e5e9f0;
    margin-bottom: 10px;
}

.error ul {
    text-align: left;
    margin: 15px 0 15px 30px;
}

.error button {
    background-color: #5e81ac;
    color: #eceff4;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
}

.error button:hover {
    background-color: #81a1c1;
}

/* Contact section */
.contact-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #2e3440;
    border-radius: 5px;
    border-left: 4px solid #5e81ac;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 10px;
    color: #777;
    font-size: 0.9rem;
}

footer i {
    color: #5e81ac;
}

footer span[style="color: red;"] {
    color: #bf616a !important; /* Nordic red that fits with the theme */
}

/* Icons */
i.fas {
    margin-right: 5px;
    color: #5e81ac;
}

/* Image carousel */
.carousel {
    margin: 30px 0 0 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: #2e3440; /* Dark background for slides */
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625 = 56.25%) */
    touch-action: pan-y pinch-zoom; /* Allow vertical scrolling but capture horizontal */
    cursor: grab; /* Show grab cursor for draggable content */
    user-select: none; /* Prevent text selection */
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2e3440;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    transform-origin: center center;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    width: var(--carousel-btn-size, 60px);
    height: var(--carousel-btn-size, 60px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-btn i {
    font-size: var(--carousel-btn-icon, 45px);
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

@media (max-width: 600px) {
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

/* Commenting out to fix horizontal line issue
.carousel-instructions {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    background-color: rgba(46, 52, 64, 0.7);
    color: #e5e9f0;
    padding: 4px 0;
    font-size: 0.8rem;
    z-index: 5;
    margin-top: 5px;
}
*/

.carousel-indicators {
    position: absolute;
    bottom: var(--carousel-indicators-bottom, 30px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    z-index: 6;
}

/* When moved into toolbar, override absolute positioning */
.carousel-indicators.toolbar-indicators {
    position: static;
    flex: 1;
    justify-content: center;
}

.carousel-indicator {
    width: var(--carousel-indicator-size, 15px);
    height: var(--carousel-indicator-size, 15px);
    background-color: #4c566a;
    border-radius: 50%;
    margin: 0 var(--carousel-indicator-gap, 6px);
    cursor: pointer;
    transition: background-color 0.2s;
}

.carousel-indicator:hover {
    background-color: #81a1c1;
}

.carousel-indicator.active {
    background-color: #88c0d0;
    transform: scale(1.2);
}

/* Hide indicators until JS moves them to toolbar */
.carousel-indicators {
    visibility: hidden;
}
.carousel-indicators.toolbar-indicators {
    visibility: visible;
}

/* Responsive styles now handled by responsive.css */