/* App Page Specific Styles */
.app-page {
    background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
    min-height: 100vh;
}

.app-page .header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-page .header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.5;
}

.app-main {
    padding: 2rem 0;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* App Header Section */
.app-header {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.app-icon-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.app-header .app-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 1rem;
}

.app-header .app-icon.text-logo {
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.2;
}

.app-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge.pricing.free {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.badge.pricing.freemium {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.badge.pricing.paid {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.app-info {
    flex: 1;
}

.app-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.app-tagline {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.app-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.app-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.app-meta .category {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #3730a3;
}

.app-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* App Details Section */
.app-details {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 0;
}

.main-content {
    padding: 2.5rem;
    border-right: 1px solid #e5e7eb;
}

.section {
    margin-bottom: 3rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section h2 i {
    color: #2563eb;
}

.content-block {
    background: #f8faff;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list i {
    color: #10b981;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.usage-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.usage-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.usage-steps li:last-child {
    margin-bottom: 0;
}

.usage-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #c7d2fe;
    transform: translateY(-1px);
}

/* Video Preview Styles */
.video-preview-container {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    justify-content: center;
    padding: 0.75rem;
    background: #f8faff;
    border-radius: 8px;
}

.video-source i {
    color: #2563eb;
}

/* Sidebar */
.app-sidebar {
    padding: 2.5rem 2rem;
    background: #f8faff;
}

.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e7ff;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.info-item label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9rem;
}

.info-item .value {
    font-weight: 600;
    color: #1f2937;
}

.info-item .value.pricing-free {
    color: #059669;
}

.info-item .value.pricing-freemium {
    color: #1d4ed8;
}

.info-item .value.pricing-paid {
    color: #7c3aed;
}

.qr-code {
    text-align: center;
}

.qr-code canvas {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.qr-code p {
    font-size: 0.85rem;
    color: #6b7280;
}

.similar-tools {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.similar-tool {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.similar-tool:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.similar-tool .tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
}

.similar-tool .tool-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.similar-tool .tool-info p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 0 1rem;
    }
    
    .app-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .app-info h1 {
        font-size: 2rem;
    }
    
    .app-actions {
        justify-content: center;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .main-content,
    .app-sidebar {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .app-header .app-icon {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    .app-info h1 {
        font-size: 1.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .app-actions {
        flex-direction: column;
    }
}