/**
 * Tekemon Theme Custom Styles
 */

/* Navigation Menu */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary);
}

/* Footer Menu */
.footer-navigation {
    margin: 30px 0;
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    justify-content: center;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover {
    opacity: 1;
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Caption */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    margin-top: 10px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    margin: 0;
}

.gallery-icon {
    border-radius: 10px;
    overflow: hidden;
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e5e7eb;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 600;
    color: var(--dark);
}

.comment-metadata {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--gray);
}

.comment-content {
    margin: 20px 0;
}

.comment-reply-link {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: var(--secondary);
}

/* Forms */
.comment-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-submit {
    margin-top: 20px;
}

.form-submit input[type="submit"] {
    background: var(--gradient);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 1rem;
}

.search-form .search-submit {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form .search-submit:hover {
    background: var(--secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 60px 0;
}

.page-numbers {
    background: white;
    color: var(--dark);
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background: var(--primary);
    color: white;
}

.page-numbers.current {
    background: var(--primary);
    color: white;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--light-gray);
    padding: 15px 0;
    margin-bottom: 40px;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .separator {
    color: var(--gray);
}

/* Testimonials */
.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 0 20px;
}

.testimonial-content {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

/* Order Management */
.tekemon-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tekemon-orders-table th,
.tekemon-orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.tekemon-orders-table th {
    background: var(--light-gray);
    font-weight: 600;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.order-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.order-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .comment-metadata {
        margin-left: 0;
    }
}

/* Accessibility */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ebook-mockup,
    .plane-animation {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #ffffff;
        --light: #0a0a0a;
        --light-gray: #1a1a1a;
    }
    
    body {
        background: var(--light);
        color: var(--dark);
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .nav-cta,
    .cta-group,
    .proof-bar,
    #buy,
    .email-capture {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-description {
        background: white;
        border: 1px solid #ccc;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Selection styles */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Focus styles */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading animation enhancements */
.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 3D effects */
.ebook-mockup {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.ebook-mockup:hover {
    transform: rotateY(5deg) translateZ(20px);
}

/* Glass morphism effects */
.hero-description,
.video-placeholder,
.price-card,
.feature-card,
.carousel-item,
.testimonial-item {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient text */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button hover effects */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

/* Parallax effects */
.hero::before {
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Particle effects */
.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: particle-float 10s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Glowing effects */
.glow {
    box-shadow: 0 0 20px var(--primary);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px var(--primary);
    }
    to {
        box-shadow: 0 0 30px var(--primary), 0 0 40px var(--primary);
    }
}

/* Morphing shapes */
.morph {
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Ripple effects */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Custom checkbox and radio buttons */
.custom-checkbox,
.custom-radio {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input,
.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
}

.custom-radio .checkmark {
    border-radius: 50%;
}

.custom-checkbox:hover input ~ .checkmark,
.custom-radio:hover input ~ .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark,
.custom-radio input:checked ~ .checkmark {
    background-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after,
.custom-radio input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-radio .checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Custom select dropdown */
.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select select {
    display: none;
}

.select-selected {
    background-color: var(--primary);
    color: white;
    padding: 12px 16px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #fff transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent #fff transparent;
    top: 7px;
}

.select-items div {
    color: var(--dark);
    padding: 12px 16px;
    border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
    user-select: none;
}

.select-items {
    position: absolute;
    background-color: white;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
}

.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

/* ==================== BUY PAGE STYLES - ADDED BELOW ==================== */

/* Buy Page Specific Styles */
.buy-page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0047ab 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.buy-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.buy-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.buy-content {
    padding: 80px 0;
    background: var(--light-gray);
}

.buy-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-details {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.product-img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
    display: block;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.product-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.author {
    color: var(--gray);
    margin-bottom: 30px;
}

.product-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.what-you-learn {
    margin-top: 30px;
}

.what-you-learn h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.what-you-learn ul {
    list-style: none;
    padding: 0;
}

.what-you-learn li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.what-you-learn li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.purchase-form {
    position: sticky;
    top: 100px;
}

.price-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-header {
    text-align: center;
    margin-bottom: 30px;
}

.price-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 10px;
}

.discount-section {
    margin-bottom: 25px;
}

.discount-form-wrapper {
    display: flex;
    gap: 10px;
}

.discount-input {
    flex: 1;
}

.apply-discount-btn {
    white-space: nowrap;
}

.payment-methods-tabs {
    margin-bottom: 25px;
}

.tab-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    background: var(--light-gray);
    border: 2px solid transparent;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.payment-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 15px;
}

.crypto-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crypto-button {
    background: white;
    border: 2px solid var(--light-gray);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.crypto-button:hover {
    border-color: var(--primary);
    background: var(--light-gray);
}

.security-badges {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin: 20px 0;
}

.badge {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
}

.badge i {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--success);
}

.customer-support {
    text-align: center;
    margin-top: 20px;
}

.buy-faq {
    background: white;
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 15px;
}

.faq-item h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.faq-item p {
    color: var(--gray);
    line-height: 1.6;
}

.buy-testimonials {
    background: var(--light-gray);
    padding: 80px 0;
}

.buy-testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* Form styling */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Responsive design */
@media (max-width: 968px) {
    .buy-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-details {
        order: 2;
    }
    
    .purchase-form {
        order: 1;
        position: static;
    }
    
    .buy-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .buy-page-hero {
        padding: 60px 0;
    }
    
    .buy-hero-content h1 {
        font-size: 2rem;
    }
    
    .product-details,
    .price-card {
        padding: 25px;
    }
    
    .discount-form-wrapper {
        flex-direction: column;
    }
    
    .security-badges {
        flex-wrap: wrap;
    }
}

/* Loading states */
.loading-state {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Success/Error messages */
.message-success {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Crypto payment info */
.crypto-payment-info {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.crypto-payment-info .qr-code {
    text-align: center;
    margin: 15px 0;
}

.crypto-payment-info .wallet-address {
    background: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin-top: 10px;
}

/* Tab transitions */
.tab-panel {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}