/**
 * Instagram Feed Planner - CreatorFlow Free Tool
 * Brand Colors: #000000 (black), #d1fe17 (lime green)
 * NO box-shadows, NO gradients
 * Mobile-first CSS
 */

/* Inherit base styles from instagram-chat-link-generator.css */
/* This CSS adds feed-planner-specific styles */

/* Planner Controls */
.planner-controls {
    margin-bottom: 2rem;
}

.color-picker-section {
    margin-bottom: 1.5rem;
}

.picker-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: block;
}

/* Color Options (Mobile-first) */
.color-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.color-btn--active {
    border-color: #000000;
    transform: scale(1.15);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

/* Feed Grid Container */
.feed-grid-container {
    margin-top: 2rem;
}

.grid-hint {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Feed Grid (Mobile-first: smaller on mobile) */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 300px;
    margin: 0 auto;
}

.grid-square {
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.grid-square:hover {
    border-color: #d1fe17;
    transform: scale(1.05);
}

.grid-square.grid-square--active {
    border-color: #000000;
    border-width: 3px;
}

/* Feed Preview */
.feed-preview {
    max-width: 500px;
    margin: 0 auto;
}

.preview-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-pic svg {
    color: #6b7280;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.25rem;
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.profile-stats {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Feed Grid Preview (identical to planner grid) */
.feed-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 300px;
    margin: 0 auto 2rem;
}

.feed-grid-preview .grid-square {
    cursor: default;
}

.feed-grid-preview .grid-square:hover {
    transform: none;
    border-color: #e5e7eb;
}

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .color-options {
        gap: 0.75rem;
    }

    .color-btn {
        width: 48px;
        height: 48px;
    }

    .action-buttons .btn {
        flex: 0 1 auto;
        min-width: 160px;
    }

    .feed-grid,
    .feed-grid-preview {
        gap: 0.75rem;
        max-width: 350px;
    }

    .grid-square {
        border-radius: 0.75rem;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .planner-controls {
        margin-bottom: 2.5rem;
    }

    .color-options {
        gap: 1rem;
    }

    .color-btn {
        width: 52px;
        height: 52px;
    }

    .feed-grid,
    .feed-grid-preview {
        gap: 1rem;
        max-width: 400px;
    }

    .preview-header {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
    }

    .profile-pic svg {
        width: 40px;
        height: 40px;
    }
}

/* Mobile adjustments (inherit from instagram-chat-link-generator.css) */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        min-width: auto;
    }

    .feed-grid,
    .feed-grid-preview {
        gap: 0.375rem;
        max-width: 280px;
    }
}

/* iPhone 14 and smaller */
@media (max-width: 430px) {
    .color-btn {
        width: 40px;
        height: 40px;
    }

    .feed-grid,
    .feed-grid-preview {
        gap: 0.25rem;
        max-width: 260px;
    }

    .grid-square {
        border-radius: 0.375rem;
        border-width: 1px;
    }

    .grid-square:hover {
        border-width: 1px;
    }

    .grid-square.grid-square--active {
        border-width: 2px;
    }

    .preview-header {
        padding: 1rem;
    }

    .profile-pic {
        width: 50px;
        height: 50px;
    }

    .profile-pic svg {
        width: 28px;
        height: 28px;
    }
}
