/*
Theme Name: UnlockTasks Pro
Description: A fully customizable WordPress theme for cryptocurrency-based digital services with integrated NowPayments.io support. Manage everything from the admin panel - no coding required.
Author: Manus AI
Version: 2.1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unlocktasks
Tags: cryptocurrency, digital-commerce, responsive, dark-theme, payment-integration
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(77, 208, 225, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #4dd0e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #4dd0e1;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4dd0e1;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #4dd0e1, #ff7043);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #ff7043, #ff5722);
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 112, 67, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 112, 67, 0.4);
    background: linear-gradient(135deg, #ff5722, #ff7043);
}

/* Tasks Section */
.tasks-section {
    padding: 100px 0;
    background: rgba(26, 26, 46, 0.5);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.task-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(77, 208, 225, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 208, 225, 0.1), transparent);
    transition: left 0.5s ease;
}

.task-card:hover::before {
    left: 100%;
}

.task-card:hover {
    transform: translateY(-10px);
    border-color: rgba(77, 208, 225, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.task-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff7043, #ff5722);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.task-badge.popular {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.task-badge.best-value {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.task-icon {
    font-size: 3rem;
    color: #4dd0e1;
    margin-bottom: 20px;
}

.task-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.task-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
}

.task-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4dd0e1;
    margin-bottom: 20px;
}

.task-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.task-features li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.task-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4dd0e1;
    font-weight: bold;
}

.btn-unlock {
    background: linear-gradient(135deg, #4dd0e1, #26c6da);
    color: #1a1a2e;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(77, 208, 225, 0.3);
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(77, 208, 225, 0.4);
    background: linear-gradient(135deg, #26c6da, #4dd0e1);
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background: rgba(15, 52, 96, 0.3);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    font-size: 2.5rem;
    color: #4dd0e1;
    margin-bottom: 20px;
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.benefit-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Payment Section */
.payment-section {
    padding: 80px 0;
    background: rgba(26, 26, 46, 0.8);
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(77, 208, 225, 0.2);
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: rgba(77, 208, 225, 0.4);
    transform: translateY(-5px);
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.payment-name {
    font-weight: 600;
    color: #ffffff;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: rgba(15, 52, 96, 0.2);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(77, 208, 225, 0.1);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(77, 208, 225, 0.1);
}

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

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 200px;
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.9);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(77, 208, 225, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #4dd0e1;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4dd0e1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(77, 208, 225, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Payment Modal */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.payment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(77, 208, 225, 0.3);
    position: relative;
}

.payment-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.payment-close:hover {
    color: #ff7043;
}

.payment-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.payment-task-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(77, 208, 225, 0.2);
}

.payment-task-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4dd0e1;
    margin-bottom: 10px;
}

.payment-task-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.currency-selector {
    margin-bottom: 30px;
}

.currency-selector label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
}

.currency-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.currency-option {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(77, 208, 225, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.currency-option:hover,
.currency-option.selected {
    border-color: #4dd0e1;
    background: rgba(77, 208, 225, 0.1);
}

.currency-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.currency-amount {
    color: #4dd0e1;
    font-weight: 500;
}

.payment-address {
    margin-bottom: 30px;
}

.payment-address label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
}

.address-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.address-input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(77, 208, 225, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.9rem;
}

.copy-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4dd0e1, #26c6da);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #26c6da, #4dd0e1);
}

.qr-code {
    text-align: center;
    margin-bottom: 30px;
}

.qr-code canvas {
    border-radius: 10px;
    background: #ffffff;
    padding: 10px;
}

.payment-timer {
    text-align: center;
    margin-bottom: 20px;
}

.timer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff7043;
}

.payment-status {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.payment-status.pending {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.payment-status.confirmed {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.payment-status.failed {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .task-card {
        padding: 30px 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .payment-content {
        padding: 30px 20px;
    }
    
    .currency-options {
        grid-template-columns: 1fr;
    }
    
    .address-container {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .task-card {
        padding: 25px 15px;
    }
    
    .payment-content {
        padding: 25px 15px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4dd0e1;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* WordPress Specific Styles */
.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.wp-block-column {
    flex: 1;
    min-width: 0;
}

.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Admin Bar Compatibility */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .payment-modal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

