/* Latest Websites Page Styles */

/* Hero Section */
.latest-hero {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.03) 0%, 
        rgba(139, 92, 246, 0.05) 50%, 
        rgba(37, 99, 235, 0.02) 100%);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

body.dark .latest-hero {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(139, 92, 246, 0.08) 50%, 
        rgba(37, 99, 235, 0.03) 100%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.latest-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.latest-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

body.dark .latest-title {
    color: #ffffff;
}

.latest-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

body.dark .latest-subtitle {
    color: #e5e5e5;
}

/* Stats Bar */
.latest-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.latest-stat {
    text-align: center;
}

.latest-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.latest-stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

body.dark .latest-stat-label {
    color: #a3a3a3;
}

/* Main Section */
.latest-section {
    padding: 3rem 0;
}

/* Websites Grid */
.latest-websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.latest-website-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.latest-website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.latest-website-card:hover::before {
    transform: scaleX(1);
}

.latest-website-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

body.dark .latest-website-card {
    background: #111111;
    border-color: #1a1a1a;
}

body.dark .latest-website-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #2a2a2a;
}

/* Screenshot Section */
.latest-website-screenshot {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

body.dark .latest-website-screenshot {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.latest-website-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-website-screenshot .screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 2.5rem;
}

body.dark .latest-website-screenshot .screenshot-placeholder {
    color: #a3a3a3;
}

/* Content Section */
.latest-website-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.latest-website-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

body.dark .latest-website-title {
    color: #ffffff;
}

.latest-website-domain {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.latest-website-description {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark .latest-website-description {
    color: #e5e5e5;
}

/* Footer Section */
.latest-website-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

body.dark .latest-website-footer {
    border-top-color: #1a1a1a;
}

.latest-website-stats {
    display: flex;
    gap: 1rem;
}

.latest-stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-500);
    font-size: 0.75rem;
}

body.dark .latest-stat-item {
    color: #a3a3a3;
}

.latest-website-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.latest-category {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

body.dark .latest-category {
    background: #0a0a0a;
    color: #e5e5e5;
}

.latest-date {
    color: var(--gray-500);
    font-size: 0.7rem;
}

body.dark .latest-date {
    color: #a3a3a3;
}

/* Custom Pagination */
.custom-pagination-wrapper {
    margin: 3rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.custom-pagination-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.custom-pagination-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
}

.custom-page-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-300);
}

.custom-page-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.custom-page-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-100) !important;
    color: var(--gray-400) !important;
    border-color: var(--gray-200) !important;
}

.custom-page-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.custom-page-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.5rem;
}

.custom-page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-300);
}

.custom-page-number:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.custom-page-active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.custom-pagination-info {
    color: var(--gray-600);
    font-size: 0.875rem;
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

/* Dark Mode */
body.dark .custom-pagination-container {
    background: #111111;
    border-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark .custom-page-btn {
    background: #111111;
    color: #e5e5e5;
    border-color: #1a1a1a;
}

body.dark .custom-page-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

body.dark .custom-page-disabled {
    background: #0a0a0a !important;
    color: #666666 !important;
    border-color: #1a1a1a !important;
}

body.dark .custom-page-number {
    background: #111111;
    color: #e5e5e5;
    border-color: #1a1a1a;
}

body.dark .custom-page-number:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

body.dark .custom-pagination-info {
    background: #0a0a0a;
    color: #cccccc;
    border-color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-pagination-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .custom-page-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .custom-page-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
        margin: 0;
    }
    
    .custom-page-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* No Websites State */
.no-websites-state {
    text-align: center;
    padding: 4rem 2rem;
}

.no-websites-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gray-500);
    font-size: 1.5rem;
}

body.dark .no-websites-icon {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #a3a3a3;
}

.no-websites-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

body.dark .no-websites-title {
    color: #ffffff;
}

.no-websites-text {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

body.dark .no-websites-text {
    color: #a3a3a3;
}

/* Categories Section */
.latest-categories-section {
    padding: 3rem 0;
    background: var(--gray-50);
}

body.dark .latest-categories-section {
    background: #0a0a0a;
}

.section-header-latest {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-latest {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

body.dark .section-title-latest {
    color: #ffffff;
}

.section-subtitle-latest {
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

body.dark .section-subtitle-latest {
    color: #e5e5e5;
}

.latest-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.latest-category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.latest-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

body.dark .latest-category-card {
    background: #111111;
    border-color: #1a1a1a;
}

body.dark .latest-category-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #2a2a2a;
}

.latest-category-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.latest-category-card:hover .latest-category-icon {
    transform: scale(1.1) rotate(5deg);
}

.latest-category-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

body.dark .latest-category-name {
    color: #ffffff;
}

.latest-category-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

body.dark .latest-category-count {
    color: #a3a3a3;
}

/* CTA Button */
.cta-btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .latest-title {
        font-size: 2rem;
    }
    
    .latest-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .latest-websites-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .latest-website-card {
        height: auto;
    }
    
    .latest-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .latest-website-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .latest-website-meta {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .latest-hero {
        padding: 2rem 0 1.5rem;
    }
    
    .latest-section {
        padding: 2rem 0;
    }
    
    .latest-categories-section {
        padding: 2rem 0;
    }
    
    .latest-website-card {
        padding: 1rem;
    }
    
    .latest-website-screenshot {
        height: 140px;
    }
}

/* Static Pages Styles */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

body.dark .page-header {
    border-bottom-color: #2a2a2a;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

body.dark .page-title {
    color: #ffffff;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

body.dark .page-subtitle {
    color: #e5e5e5;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-section {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

body.dark .section-title {
    color: #ffffff;
}

.section-content {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 1rem;
}

body.dark .section-content {
    color: #e5e5e5;
}

.section-content p {
    margin-bottom: 1.5rem;
}

.section-content h3 {
    color: var(--gray-900);
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

body.dark .section-content h3 {
    color: #ffffff;
}

.highlight-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

body.dark .highlight-box {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

body.dark .legal-section {
    border-bottom-color: #2a2a2a;
}

.legal-section:last-child {
    border-bottom: none;
}

.contact-info {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 2rem;
}

body.dark .contact-info {
    background: #1a1a1a;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

body.dark .contact-item {
    color: #e5e5e5;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid var(--gray-200);
}

body.dark .team-member {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.team-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

body.dark .team-name {
    color: #ffffff;
}

.team-bio {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

body.dark .team-bio {
    color: #e5e5e5;
}

.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.help-category {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

body.dark .help-category {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.help-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.help-category h3 {
    color: var(--gray-900);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body.dark .help-category h3 {
    color: #ffffff;
}

.help-category p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.9rem;
}

body.dark .help-category p {
    color: #e5e5e5;
}

/* Responsive */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .help-categories {
        grid-template-columns: 1fr;
    }
}
/* FAQ Styles */
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

body.dark .faq-item {
    border-color: #2a2a2a;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.faq-question {
    width: 100%;
    background: var(--gray-50);
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

body.dark .faq-question {
    background: #1a1a1a;
    color: #ffffff;
}

.faq-question:hover {
    background: var(--gray-100);
}

body.dark .faq-question:hover {
    background: #222222;
}

.faq-question.active {
    background: var(--primary-color);
    color: white;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

body.dark .faq-answer {
    background: #111111;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

body.dark .faq-answer p {
    color: #e5e5e5;
}
/* Page Links Styling */
.section-content a,
.help-category a,
.legal-section a,
.highlight-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.section-content a:hover,
.help-category a:hover,
.legal-section a:hover,
.highlight-box a:hover {
    color: #1d4ed8;
    border-bottom-color: var(--primary-color);
}

body.dark .section-content a,
body.dark .help-category a,
body.dark .legal-section a,
body.dark .highlight-box a {
    color: #60a5fa;
}

body.dark .section-content a:hover,
body.dark .help-category a:hover,
body.dark .legal-section a:hover,
body.dark .highlight-box a:hover {
    color: #93c5fd;
    border-bottom-color: #60a5fa;
}

/* Help Categories List Links */
.help-categories ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.help-categories li {
    margin-bottom: 0.5rem;
}

.help-categories li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.help-categories li a:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
}

.help-categories li a:hover {
    color: var(--primary-color);
    background: var(--gray-50);
    padding-left: 0.5rem;
}

body.dark .help-categories li a {
    color: #e5e5e5;
}

body.dark .help-categories li a:hover {
    color: #60a5fa;
    background: #1a1a1a;
}

/* API Documentation Code Blocks */
.section-content code {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

body.dark .section-content code {
    background: #2a2a2a;
    color: #e5e5e5;
}

/* Code Block Containers */
.section-content div[style*="background: #f8f9fa"] {
    background: var(--gray-50) !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin: 1rem 0 !important;
    font-family: 'Courier New', monospace !important;
}

body.dark .section-content div[style*="background: #f8f9fa"] {
    background: #1a1a1a !important;
    border-color: #2a2a2a !important;
    color: #e5e5e5 !important;
}