/* Strategy Management Styles */

/* Subscription Upsell Banner */
.subscription-upsell-banner {
    background: linear-gradient(135deg, #db8a70 0%, #c57559 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(219, 138, 112, 0.3);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upsell-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.upsell-icon {
    font-size: 3rem;
    color: #ffd700;
    flex-shrink: 0;
}

.upsell-text {
    flex: 1;
}

.upsell-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.upsell-text p {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.4;
}

.upsell-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-upgrade {
    background: white;
    color: #db8a70;
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f7f5f3;
}

.btn-close-banner {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-banner:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header i {
    color: var(--primary-color);
}

.page-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Strategies Grid */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.strategy-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    cursor: pointer;
    border-left: 4px solid var(--primary-color);
}

.strategy-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.strategy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.platform-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.platform-badge-large.youtube { background: rgba(255, 0, 0, 0.1); color: #FF0000; }
.platform-badge-large.instagram { background: rgba(225, 48, 108, 0.1); color: #E1306C; }
.platform-badge-large.facebook { background: rgba(24, 119, 242, 0.1); color: #1877F2; }
.platform-badge-large.twitter { background: rgba(29, 161, 242, 0.1); color: #1DA1F2; }
.platform-badge-large.linkedin { background: rgba(10, 102, 194, 0.1); color: #0A66C2; }
.platform-badge-large.tiktok { background: rgba(0, 0, 0, 0.1); color: #000000; }

.strategy-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.strategy-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.strategy-progress {
    margin: 1rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s;
}

.strategy-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.strategy-stat {
    display: flex;
    flex-direction: column;
}

.strategy-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.strategy-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.strategy-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.strategy-actions .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Strategy Modal */
.strategy-modal-content {
    max-width: 700px;
    max-height: calc(100vh - 4rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.strategy-modal-content .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-white);
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
}

.strategy-modal-content form {
    overflow-y: auto;
    flex: 1;
    padding: 2rem;
}

.strategy-modal-content .modal-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: var(--bg-white);
    border-radius: 0 0 12px 12px;
}

/* Empty State */
.empty-strategies {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-strategies i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-strategies h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Responsive Design */

/* Tablet (968px and below) */
@media (max-width: 968px) {
    .strategies-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .subscription-upsell-banner {
        padding: 1.25rem;
    }
    
    .upsell-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .upsell-icon {
        font-size: 2.5rem;
    }
    
    .upsell-text h3 {
        font-size: 1.2rem;
    }
    
    .upsell-text p {
        font-size: 0.9rem;
    }
    
    .upsell-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn-upgrade {
        width: 100%;
        justify-content: center;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    .strategies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .strategy-card {
        padding: 1.25rem;
    }
    
    .strategy-title {
        font-size: 1.1rem;
    }
    
    .strategy-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .strategy-stat {
        min-width: calc(50% - 0.5rem);
    }
    
    .strategy-actions {
        flex-direction: column;
    }
    
    .strategy-actions .btn {
        width: 100%;
    }
    
    /* Modal Mobile */
    .strategy-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .strategy-modal-content form {
        padding: 1.5rem 1rem;
    }
    
    .empty-strategies {
        padding: 3rem 1.5rem;
    }
    
    .empty-strategies i {
        font-size: 3rem;
    }
    
    .empty-strategies h3 {
        font-size: 1.25rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .page-header {
        margin: 1rem 0;
    }
    
    .page-header h2 {
        font-size: 1.3rem;
    }
    
    .strategy-card {
        padding: 1rem;
    }
    
    .platform-badge-large {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .strategy-title {
        font-size: 1rem;
    }
    
    .strategy-dates {
        font-size: 0.85rem;
    }
    
    .strategy-stat-value {
        font-size: 1.25rem;
    }
    
    .strategy-stat-label {
        font-size: 0.8rem;
    }
    
    .strategy-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .empty-strategies {
        padding: 2rem 1rem;
    }
    
    .empty-strategies i {
        font-size: 2.5rem;
    }
    
    .empty-strategies h3 {
        font-size: 1.1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .strategy-card:hover {
        transform: none;
    }
    
    .strategy-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-md);
    }
}

/* Strategy Detail Sidebar Panel */
.strategy-detail-panel {
    position: fixed;
    right: -600px;
    top: 0;
    width: 600px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.strategy-detail-panel.active {
    right: 0;
}

.strategy-detail-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.strategy-detail-header h3 {
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.strategy-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.strategy-detail-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.strategy-detail-actions .close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.strategy-detail-actions .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.strategy-detail-body {
    flex: 1;
    padding: 2rem;
}

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

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

.detail-section h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h4 i {
    color: var(--primary-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
    color: var(--text-dark);
}

.detail-text {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.detail-empty {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-container .progress-bar {
    flex: 1;
    height: 12px;
}

.progress-text {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 50px;
    text-align: right;
}

.linked-posts-list {
    max-height: 300px;
    overflow-y: auto;
}

.linked-post-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s;
}

.linked-post-item:hover {
    background: #f0f4f8;
    transform: translateX(5px);
}

.linked-post-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.linked-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.linked-post-platforms {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mini-platform-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mini-platform-badge.youtube { background: rgba(255, 0, 0, 0.1); color: #FF0000; }
.mini-platform-badge.instagram { background: rgba(225, 48, 108, 0.1); color: #E1306C; }
.mini-platform-badge.facebook { background: rgba(24, 119, 242, 0.1); color: #1877F2; }
.mini-platform-badge.twitter { background: rgba(29, 161, 242, 0.1); color: #1DA1F2; }
.mini-platform-badge.linkedin { background: rgba(10, 102, 194, 0.1); color: #0A66C2; }
.mini-platform-badge.tiktok { background: rgba(0, 0, 0, 0.1); color: #000000; }

.goals-list, .tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.goal-item, .task-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
}

.goal-title, .task-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.goal-progress {
    font-size: 0.9rem;
    color: var(--text-light);
}

.task-due {
    font-size: 0.85rem;
    color: var(--text-light);
}

.task-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.task-day-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ebf4ff;
    color: #1a202c;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.task-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.task-meta-badge i {
    font-size: 0.7rem;
}

.task-meta-badge.priority.high {
    background: #fee2e2;
    color: #c53030;
    border-color: #feb2b2;
}

.task-meta-badge.priority.medium {
    background: #edf2f7;
    color: #2c5282;
    border-color: #cbd5e0;
}

.task-meta-badge.priority.low {
    background: #e6fffa;
    color: #047857;
    border-color: #b2f5ea;
}

.task-meta-badge.subtask {
    background: #fef3c7;
    color: #b7791f;
    border-color: #fbd38d;
}

.task-meta-badge.source {
    background: #e0f2f1;
    color: #00695c;
    border-color: #80cbc4;
}

.task-meta-badge.parent {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}

/* Task Action Buttons in Strategy Detail Panel */
.task-item .task-actions {
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.75rem;
}

.task-item .task-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

.task-item .task-actions .btn i {
    margin-right: 0.3rem;
}

.task-item .task-actions .btn-sm {
    font-size: 0.75rem;
}

.btn-danger {
    background: #e53e3e;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c53030;
}

.goal-completed {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive - Tablet & Mobile */
@media (max-width: 768px) {
    .strategy-detail-panel {
        right: -100%;
        width: 100%;
    }
    
    .strategy-detail-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .strategy-detail-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .strategy-detail-body {
        padding: 1.5rem 1rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

