/* ===========================
   Page-Specific Styles
   =========================== */

/* Back Button */
.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--accent-primary);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* Page Container */
.page-container {
    padding-top: 6rem;
    max-width: 900px;
}

/* Content Card */
.content-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 8px 32px var(--shadow-color);
    animation: fadeInUp 0.8s ease-out;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
}

.icon-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 20px;
    animation: floatLogo 3s ease-in-out infinite;
}

.icon-badge svg {
    width: 40px;
    height: 40px;
    color: white;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 2.5rem;
}

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

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 1rem 0 1rem 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.content-section a:hover {
    border-bottom-color: var(--accent-primary);
}

.content-section code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-primary);
}

.content-section kbd {
    background: var(--bg-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Highlight Sections */
.highlight-section {
    background: var(--accent-gradient);
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
}

.highlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    border-radius: 18px;
    z-index: -1;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Detailed Feature Grid */
.feature-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.feature-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.feature-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* Permission Items */
.permission-item {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent-primary);
    border-radius: 8px;
}

.permission-item h3 {
    margin-top: 0;
}

/* Usage Steps */
.usage-step {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.usage-step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.step-number {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.step-content h3 {
    margin-top: 0;
}

.step-content p {
    margin-bottom: 0;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.control-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.control-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.control-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.control-item strong {
    display: block;
    margin: 0.5rem 0;
}

.control-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* FAQ Items */
.faq-item {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.faq-item h3 {
    margin-top: 0;
    color: var(--accent-primary);
}

/* Compatibility Grid */
.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.compat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.compat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.compat-item strong {
    display: block;
    margin: 0.5rem 0;
}

.compat-item p {
    font-size: 0.85rem;
    margin: 0;
}

.note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Pro Tips / Summary Lists */
.pro-tips,
.summary-list,
.philosophy-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.pro-tips li,
.summary-list li,
.philosophy-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.pro-tips li::before,
.summary-list li::before,
.philosophy-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--shadow-color);
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.cta-button svg {
    width: 24px;
    height: 24px;
}

/* Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.project-card.featured {
    border: 2px solid var(--accent-primary);
}

.project-card.coming-soon {
    opacity: 0.7;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 16px;
    flex-shrink: 0;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-icon.placeholder {
    background: rgba(255, 255, 255, 0.1);
}

.project-icon.placeholder svg {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
}

.project-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.project-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-bottom-color: transparent;
}

.project-link.primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.project-link svg {
    width: 18px;
    height: 18px;
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .page-container {
        padding-top: 5rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .page-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .icon-badge {
        width: 60px;
        height: 60px;
    }

    .icon-badge svg {
        width: 30px;
        height: 30px;
    }

    .feature-grid,
    .feature-grid-detailed,
    .controls-grid,
    .compatibility-grid {
        grid-template-columns: 1fr;
    }

    .usage-step {
        flex-direction: column;
        text-align: center;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
    }
}
