/* ===================================
   Product Roadmap Planner Styles
   ================================== */

/* Root Variables */
:root {
    --primary-color: #C62E2E;
    --secondary-color: #1e1e1e;
    --accent-color: #C1E172;
    --background-color: #f8f9fa;
    --text-color: #1e1e1e;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a32424 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-icon {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 50%;
    margin-top: 10px;
}

/* Tool Section */
.tool-section {
    padding: 60px 20px;
}

.tool-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
}

/* Control Panel */
.control-panel {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--background-color);
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.control-group input,
.control-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198, 46, 46, 0.1);
}

.control-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Feature Input Panel */
.feature-input-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 2px solid #e8e8e8;
}

.feature-input-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.flex-2 {
    grid-column: span 2;
}

.form-group.flex-3 {
    grid-column: span 3;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198, 46, 46, 0.1);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #a32424;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 46, 46, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #000000;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Roadmap Container */
.roadmap-container {
    margin-top: 40px;
    padding: 30px;
    background: #fafbfc;
    border-radius: var(--border-radius);
    border: 2px solid #e8e8e8;
}

.roadmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.roadmap-header h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
}

.roadmap-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Timeline View */
.timeline-view {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 30px;
    min-height: 400px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 400px;
}

/* Timeline Grid */
.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-header {
    display: grid;
    gap: 10px;
    padding: 15px 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a32424 100%);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-period {
    text-align: center;
    padding: 8px;
}

.timeline-row {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    border: 2px solid #f0f0f0;
    transition: var(--transition);
    align-items: center;
}

.timeline-row:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.timeline-label {
    font-weight: 600;
    padding: 8px 12px;
    border-right: 2px solid #f0f0f0;
    min-width: 180px;
}

.timeline-bar-container {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.timeline-bar {
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.timeline-bar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.timeline-bar.priority-critical {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.timeline-bar.priority-high {
    background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
}

.timeline-bar.priority-medium {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.timeline-bar.priority-low {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.timeline-bar.status-completed {
    opacity: 0.7;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
}

.timeline-bar.status-in-progress {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
}

.timeline-bar.status-delayed {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.timeline-bar.status-cancelled {
    opacity: 0.4;
    text-decoration: line-through;
}

/* Features List */
.features-list {
    margin-top: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.features-list h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    gap: 16px;
}

.feature-card {
    padding: 20px;
    background: #fafbfc;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.feature-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    gap: 12px;
}

.feature-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    flex: 1;
}

.feature-card-actions {
    display: flex;
    gap: 8px;
}

.feature-card-actions button {
    padding: 6px 12px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.feature-card-actions button:hover {
    background: var(--primary-color);
}

.feature-card-actions button.delete-btn {
    background: #dc3545;
}

.feature-card-actions button.delete-btn:hover {
    background: #c82333;
}

.feature-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.feature-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.priority-badge,
.status-badge,
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.critical {
    background: #dc3545;
    color: var(--white);
}

.priority-badge.high {
    background: #fd7e14;
    color: var(--white);
}

.priority-badge.medium {
    background: #0d6efd;
    color: var(--white);
}

.priority-badge.low {
    background: #6c757d;
    color: var(--white);
}

.status-badge {
    background: #e0e0e0;
    color: var(--text-color);
}

.status-badge.completed {
    background: #28a745;
    color: var(--white);
}

.status-badge.in-progress {
    background: #0d6efd;
    color: var(--white);
}

.status-badge.delayed {
    background: #ffc107;
    color: var(--text-color);
}

.status-badge.cancelled {
    background: #dc3545;
    color: var(--white);
}

.category-badge {
    background: var(--accent-color);
    color: var(--text-color);
}

.feature-card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 10px;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: var(--white);
}

.features-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.features-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* How To Section */
.how-to-section {
    padding: 80px 20px;
    background: var(--background-color);
}

.how-to-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.step p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content > p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-primary-cta,
.btn-secondary-cta {
    padding: 16px 36px;
    border-radius: var(--border-radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary-cta {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary-cta:hover {
    background: #a32424;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(198, 46, 46, 0.4);
}

.btn-secondary-cta {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary-cta:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.cta-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.cta-feature svg {
    flex-shrink: 0;
}

.cta-app-download {
    margin-top: 30px;
}

.cta-app-download p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.app-link:hover {
    color: var(--white);
    transform: translateX(4px);
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background: var(--white);
}

.faq-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    background: var(--background-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Content Section */
.content-section {
    padding: 80px 20px;
    background: var(--background-color);
}

.content-section article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.content-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .tool-card {
        padding: 24px;
    }
    
    .control-row,
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group.flex-2,
    .form-group.flex-3 {
        grid-column: span 1;
    }
    
    .roadmap-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .roadmap-controls {
        width: 100%;
    }
    
    .roadmap-controls button {
        flex: 1;
        min-width: 0;
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    .timeline-view {
        padding: 20px;
        overflow-x: auto;
    }
    
    .timeline-label {
        min-width: 140px;
        font-size: 0.9rem;
    }
    
    .features-grid-layout,
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary-cta,
    .btn-secondary-cta {
        width: 100%;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .content-section article {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .feature-input-panel {
        padding: 20px;
    }
    
    .timeline-row {
        grid-template-columns: 1fr;
    }
    
    .timeline-label {
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 10px;
    }
    
    .feature-card-header {
        flex-direction: column;
    }
    
    .feature-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
}