/* ==================== */
/* Demo Page Styles */
/* ==================== */

.demo-section {
    padding: 4rem var(--padding-lg);
    background-color: var(--light-color);
}

/* ==================== */
/* Demo Tabs */
/* ==================== */

.demo-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.demo-tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.demo-tab-btn:hover {
    color: var(--primary-color);
}

.demo-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.demo-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.demo-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== */
/* Live App Container */
/* ==================== */

.live-app-container {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 800px;
}

.materialist-iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

.iframe-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    text-align: center;
    gap: 1rem;
    z-index: 1;
    pointer-events: none;
}

.materialist-iframe:not([src=""]) ~ .iframe-fallback {
    display: none;
}

.iframe-fallback i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.iframe-fallback h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
}

.iframe-fallback p {
    color: var(--text-color);
    max-width: 400px;
}

/* ==================== */
/* Live App Info */
/* ==================== */

.live-app-info {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.live-app-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.live-app-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.live-app-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.live-app-content > p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.live-app-description,
.live-app-instructions {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 0.75rem;
}

.live-app-description h3,
.live-app-instructions h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.live-app-description ul {
    list-style: none;
    padding: 0;
}

.live-app-description li {
    padding: 0.5rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-app-description i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.live-app-instructions ol {
    padding-left: 1.5rem;
}

.live-app-instructions li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

.live-app-cta {
    margin-top: 2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-lg i {
    margin-right: 0.5rem;
}

/* ==================== */
/* Demo Container */
/* ==================== */

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

/* ==================== */
/* Phone Mockup */
/* ==================== */

.phone-mockup {
    position: relative;
    width: 320px;
    height: 640px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #0f172a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-home {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    z-index: 5;
}

/* ==================== */
/* Demo Views */
/* ==================== */

.demo-view {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

.demo-view.active {
    display: flex;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.demo-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-header h2 {
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
}

.demo-header p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.demo-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* ==================== */
/* Demo Buttons */
/* ==================== */

.demo-btn,
.demo-back-btn,
.demo-add-btn,
.demo-search-btn,
.demo-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-top: 1rem;
}

.demo-btn:hover {
    background: #4f46e5;
}

.demo-back-btn,
.demo-add-btn,
.demo-search-btn,
.demo-menu-btn {
    width: auto;
}

.demo-back-btn:hover,
.demo-add-btn:hover,
.demo-search-btn:hover,
.demo-menu-btn:hover {
    opacity: 0.8;
}

/* ==================== */
/* Login View */
/* ==================== */

.demo-icon {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin: 2rem 0;
}

/* ==================== */
/* Dashboard Cards */
/* ==================== */

.demo-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.demo-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.demo-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.demo-card h4 {
    margin: 0.5rem 0 0.25rem 0;
    color: var(--dark-color);
}

.demo-card p {
    margin: 0;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==================== */
/* List Items */
/* ==================== */

.demo-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.demo-list-item:last-child {
    border-bottom: none;
}

.demo-list-item:hover {
    background: var(--light-color);
}

.demo-list-item i:first-child {
    font-size: 1.5rem;
}

.demo-list-item > div {
    flex: 1;
}

.demo-list-item h4 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-color);
    font-size: 1rem;
}

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

.demo-list-item i:last-child {
    color: var(--border-color);
    font-size: 1rem;
}

/* ==================== */
/* Task Items */
/* ==================== */

.demo-task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-left: 4px solid var(--border-color);
    background: var(--light-color);
    border-radius: 0.25rem 0.5rem 0.5rem 0.25rem;
    margin-bottom: 1rem;
}

.demo-task-item.pending {
    border-left-color: #f59e0b;
}

.demo-task-item.in-progress {
    border-left-color: #0ea5e9;
}

.demo-task-item.completed {
    border-left-color: #22c55e;
}

.demo-task-item h4 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-color);
    font-size: 1rem;
}

.demo-task-item p {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 0.85rem;
}

.demo-task-item small {
    color: var(--text-color);
    font-size: 0.75rem;
}

.demo-status {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.demo-task-item.pending .demo-status {
    background: #fef3c7;
    color: #92400e;
}

.demo-task-item.in-progress .demo-status {
    background: #cffafe;
    color: #0c4a6e;
}

.demo-task-item.completed .demo-status {
    background: #dcfce7;
    color: #166534;
}

/* ==================== */
/* Team Members */
/* ==================== */

.demo-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.demo-member:last-child {
    border-bottom: none;
}

.demo-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.demo-member h4 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.demo-member p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.85rem;
}

.demo-member i {
    margin-left: auto;
    font-size: 1.2rem;
}

/* ==================== */
/* Materials */
/* ==================== */

.demo-material {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.material-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.material-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.material-status {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.material-status.verified {
    background: #dcfce7;
    color: #166534;
}

.material-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.demo-material h4 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.demo-material p {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 0.85rem;
}

.demo-material small {
    color: var(--text-color);
    font-size: 0.8rem;
}

/* ==================== */
/* Menu Items */
/* ==================== */

.demo-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.demo-menu-item:hover {
    background: var(--light-color);
}

.demo-menu-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 24px;
}

.demo-menu-item span {
    color: var(--dark-color);
    font-weight: 500;
}

/* ==================== */
/* Demo Info Section */
/* ==================== */

.demo-info {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.demo-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.demo-info > p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.demo-features,
.demo-tech {
    margin-bottom: 2rem;
}

.demo-features h3,
.demo-tech h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.demo-features ul {
    list-style: none;
    padding: 0;
}

.demo-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-features i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badges span {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ==================== */
/* Features Breakdown */
/* ==================== */

.features-breakdown {
    margin-top: 4rem;
}

.features-breakdown h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* ==================== */
/* Responsive Design */
/* ==================== */

@media (max-width: 1024px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .phone-mockup {
        max-width: 100%;
    }

    .live-app-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .demo-section {
        padding: 2rem var(--padding-md);
    }

    .demo-container {
        gap: 1.5rem;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .demo-info {
        padding: 1.5rem;
    }

    .demo-info h2 {
        font-size: 1.5rem;
    }

    .demo-tabs {
        gap: 0.5rem;
    }

    .demo-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .live-app-content {
        padding: 2rem 1rem;
    }

    .live-app-content h2 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .features-breakdown h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card i {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .demo-container {
        gap: 1rem;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .demo-screen {
        font-size: 0.9rem;
    }

    .demo-header h2 {
        font-size: 1.1rem;
    }

    .demo-info h2 {
        font-size: 1.3rem;
    }

    .tech-badges {
        flex-direction: column;
    }

    .tech-badges span {
        justify-content: center;
    }

    .features-breakdown h2 {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
