/* Theme Detail Page Styles */
.theme-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Theme Header */
.theme-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .theme-header {
        grid-template-columns: 1fr;
    }
}

/* Preview Section */
.theme-preview {
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.preview-container {
    max-height: 750px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    position: relative;
}

.preview-image {
    width: 100%;
    scroll-snap-align: start;
    position: relative;
}

.preview-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint svg {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

/* Custom Scrollbar */
.preview-container::-webkit-scrollbar {
    width: 8px;
}

.preview-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.preview-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.preview-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Safari Support */
@supports (-webkit-backdrop-filter: none) {
    .scroll-hint {
        -webkit-backdrop-filter: blur(5px);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .preview-container {
        height: 400px;
    }
}

/* Theme Info */
.theme-info {
    display: flex;
    flex-direction: column;
}

.theme-title {
    margin: 0;
    font-size: 2.5rem;
    color: var(--text-color);
}

.theme-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.theme-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
    justify-content: left;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.meta-item i {
    color: var(--primary-color);
}

/* Tags */
.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.tag:hover {
    transform: translateY(-2px);
}

/* Download Section Styles */
.download-section {
    margin: 30px 0;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.download-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    justify-content: center;
}

.download-button.secondary {
    background: var(--accent-color);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-button.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.qr-section p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

#qr-code {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        text-align: center;
    }
}

/* Related Themes */
.related-themes {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.related-themes h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Related Theme Card */
.related-grid .theme-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-grid .theme-card:hover {
    transform: translateY(-5px);
}

.related-grid .theme-preview {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-grid .theme-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-grid .theme-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-grid .theme-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.related-grid .theme-info p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.related-grid .view-theme {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.2s;
}

.related-grid .view-theme:hover {
    transform: translateY(-2px);
}

/* Source Link */
.source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: color 0.2s;
}

.source-link:hover {
    color: var(--accent-color);
}

.source-link .icon {
    transition: transform 0.2s;
}

.source-link:hover .icon {
    transform: translateX(4px);
}

/* Theme Meta Data */
.meta-data {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    color: var(--primary-color);
}

.meta-item i {
    font-size: 1.2rem;
}

/* Date and Additional Info */
.additional-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.additional-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
}

/* Image Slider */
.preview-slider {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.prev-slide,
.next-slide {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slide-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Installation Guide */
.install-guide {
    margin-top: 60px;
    border-radius: 20px;
}

.install-guide h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.guide-section {
    margin-bottom: 40px;
}

.guide-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.guide-section h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Info Box */
.info-box {
    background: rgba(var(--primary-rgb), 0.05);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
}

.info-box p {
    margin: 0 0 15px;
    line-height: 1.6;
    color: #666;
}

.info-box ul {
    margin: 15px 0;
    padding-left: 20px;
}

.info-box li {
    margin: 10px 0;
    color: #666;
    line-height: 1.5;
}

/* Installation Steps */
.install-steps, .removal-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.install-steps li, .removal-steps li {
    position: relative;
    padding: 20px 20px 20px 60px;
    margin-bottom: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.install-steps li::before, .removal-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.install-steps h4 {
    margin: 0 0 10px;
    color: var(--text-color);
}

.install-steps p, .removal-steps li {
    color: #666;
    line-height: 1.5;
}

/* Setup Steps */
.setup-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.setup-steps li {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.setup-steps h4 {
    margin: 0 0 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.setup-steps h4::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.setup-steps p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Warning Box */
.warning-box {
    background: rgba(255, 149, 0, 0.1);
    border-left: 4px solid #ff9500;
    padding: 20px;
    border-radius: 0 15px 15px 0;
    margin: 20px 0;
}

.warning-box h4 {
    color: #ff9500;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .install-guide {
        padding: 20px;
    }

    .setup-steps {
        grid-template-columns: 1fr;
    }

    .install-steps li, .removal-steps li {
        padding: 15px 15px 15px 50px;
    }

    .install-steps li::before, .removal-steps li::before {
        left: 15px;
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
}

/* Safari Support */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .info-box {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.8);
    }
}

/* Related Themes Section */
.related-themes {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid #eee;
}

.related-themes h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Related Theme Cards */
.related-grid .theme-card {
        background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.related-grid .theme-card:hover {
  transform: translateY(-5px);
}

.related-grid .theme-preview {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-grid .theme-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-grid .theme-overlay {
  position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-grid .theme-card:hover .theme-overlay {
  opacity: 1;
}

.related-grid .theme-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-grid .theme-title h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-color);
}

.related-grid .theme-description {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-grid .theme-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 5px;
}

.related-grid .theme-meta span {
  font-size: 0.9rem;
  color: #666;
}

.related-grid .view-button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: transform 0.2s;
}

.related-grid .view-button:hover {
  transform: translateY(-2px);
}

.related-grid .arrow {
  transition: transform 0.3s ease;
}

.related-grid .view-button:hover .arrow {
  transform: translateX(3px);
} 