/* =============================================================================
   Page Styles - About, More Apps, Blog, Donate, Privacy, Terms
   ============================================================================= */

/* Page Container */
.page-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-panel {
    background: var(--bg-panel);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.page-panel::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--accent-primary);
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.page-title {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0 0 2rem 0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section {
    margin-bottom: 2.5rem;
}

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

.section-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin: 0 0 1.2rem 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

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

/* Story Section */
.story-text {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-primary);
}

.story-text p {
    margin-bottom: 1rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.tech-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.tech-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* .pillow  {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
} */

.tech-item span {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-secondary);
    text-align: center;
}

/* About Profile */
.about-profile {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 256px;
    height: 256px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 3px solid var(--accent-primary);
}

.profile-image-placeholder {
    width: 256px;
    height: 256px;
    background: var(--bg-secondary);
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.profile-text {
    flex: 1;
    margin-top: -20px;
}

.profile-text h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item img {
    width: 24px;
    height: 24px;
}

.contact-item span {
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.copy-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    transition: var(--transition-fast);
    margin-left: 0.5rem;
}

.copy-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Feature List */
.feature-list, .spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.feature-list li {
    padding: 0.9rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
}

.spec-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
}

.feature-icon {
    font-size: 1.2rem;
}

/* =============================================================================
   More Apps Page
   ============================================================================= */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.app-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition-fast);
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.app-logo {
    flex-shrink: 0;
    /* margin-bottom: 0.5rem; */
}

.app-logo img {
    width: 300px;
    height: 150px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.app-logo-placeholder {
    width: 64px;
    height: 64px;
    background: var(--bg-panel);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.app-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.app-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.app-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}

.app-link:hover {
    text-decoration: underline;
}

.coming-soon-section {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.coming-soon-section h3 {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.coming-soon-section p {
    color: var(--text-muted);
    margin: 0;
}

/* =============================================================================
   Donate Page
   ============================================================================= */

.donate-page {
    max-width: 1000px;
    margin: 2rem auto;
}

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

.donate-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.donate-intro {
    text-align: left;
    margin-bottom: 2rem;
}

.donate-intro p {
    max-width: none;
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.donate-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.donate-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.donate-method {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.donate-method h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin: 0 0 0.5rem 0;
}

.method-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 1.5rem 0;
}

.paypal-container {
    text-align: center;
    min-height: 60px;
    width: 100%;
}

/* PayPal Hosted Button Container */
#paypal-container-AXSGC764YRB5W {
   width: 100%;
  max-width: 360px;      /* pick what looks good on desktop */
  margin: 0 auto 1rem;   /* center */
  display: block;        /* avoid flex shrink weirdness */
}

/* Fix PayPal iframe display */
#paypal-container-AXSGC764YRB5W iframe {
 display: block !important;
  width: 100% !important;     /* key: never let it collapse */
  max-width: 100% !important;
  height: 55px !important;    /* optional: keeps it neat */
  border: 0 !important;
}

.paypal-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0070ba;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.paypal-donate-btn:hover {
    background: #005ea6;
}

.paypal-donate-btn svg {
    fill: currentColor;
}

.method-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
    text-align: center;
}

.upi-container {
    text-align: center;
}

.qr-placeholder {
    width: auto;
    height: auto;
    margin: 0 auto 1rem;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    padding: 1rem;
}

.qr-fallback span {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.qr-fallback p {
    margin: 0;
    font-weight: bold;
}

.qr-fallback small {
    font-size: 0.75rem;
}

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

.upi-id-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-panel);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.upi-id-box code {
    font-weight: bold;
    color: var(--text-primary);
}

.copy-upi-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.copy-upi-btn:hover {
    opacity: 0.9;
}

.copy-upi-btn.copied {
    background: var(--success);
    color: #ffffff;
}

.community-section {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.community-section h3 {
    font-family: var(--font-display);
    color: var(--accent-primary);
    margin: 0 0 0.5rem 0;
}

.community-section p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.discord-btn:hover {
    background: #4752c4;
}

/* Old donate card styles - keeping for compatibility */
.donate-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.donate-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.donate-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin: 0 0 1rem 0;
}

.donate-card-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.upi-qr {
    width: 200px;
    height: 200px;
    margin: 1rem auto;
}

.upi-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.upi-qr-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-panel);
    border: 2px dashed var(--border-color);
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-radius: var(--border-radius);
}

.upi-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.upi-id code {
    background: var(--bg-panel);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    color: var(--text-primary);
}

.donation-usage {
    margin-top: 2rem;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.usage-item {
    background: var(--bg-secondary);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--border-color);
}

.usage-item span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.usage-item strong {
    color: var(--text-primary);
}

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

.perks-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.perks-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.community-section {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.community-section h4 {
    color: var(--accent-primary);
    margin: 0 0 1rem 0;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #5865F2;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.5rem;
    transition: var(--transition-fast);
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

.discord-btn img {
    width: 24px;
    height: 24px;
}

.help-section {
    margin-top: 2rem;
}

.help-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.help-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--border-color);
}

.help-item span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.help-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.help-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.thank-you-section {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.thank-you-section h3 {
    color: var(--accent-primary);
    margin: 0 0 0.5rem 0;
}

.thank-you-section p {
    color: var(--text-secondary);
    margin: 0;
}

/* =============================================================================
   Blog Page
   ============================================================================= */

.blog-coming-soon {
    text-align: center;
    padding: 4rem 2rem;
}

.blog-coming-soon h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-primary);
    margin: 0 0 1rem 0;
}

.blog-coming-soon p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.blog-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* =============================================================================
   Privacy & Terms Pages
   ============================================================================= */

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin: 2rem 0 1rem 0;
    font-weight: bold;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p, .legal-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 1.5rem;
}

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

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* =============================================================================
   Responsive Adjustments for Pages
   ============================================================================= */

@media (max-width: 900px) {
    .about-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .donate-cards {
        grid-template-columns: 1fr;
    }
    
    .donate-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .usage-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-panel {
        padding: 1.5rem;
    }
    
    .page-panel::before {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .profile-image img,
    .profile-image-placeholder {
        width: 180px;
        height: 180px;
    }
    
    .donate-method {
        padding: 1rem;
    }
    
    .qr-placeholder {
        width: auto;
        height: auto;
    }
    
    .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
