/* Call Scripts Page Specific Styles */

/* Intro Section */
.intro-section {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.intro-section h2 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 2rem;
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Bill Alert Section */
.bill-alert {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #f87171;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.bill-alert h3 {
    margin: 0 0 1rem 0;
    color: #dc2626;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bill-alert p {
    margin: 0;
    color: #7f1d1d;
    font-weight: 500;
}

/* Script Cards */
.scripts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.script-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.script-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    position: relative;
}

.script-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.script-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.script-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.3;
}

.script-content {
    padding: 1.5rem;
}

.script-preview {
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--text-secondary);
}

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

/* Tips Section */
.tips-section {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.tips-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.tip {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-icon {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.tip-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.tip-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--card-background);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.script-full {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    white-space: pre-line;
}

.copy-script-btn {
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scripts-container {
        grid-template-columns: 1fr;
    }

    .script-actions {
        flex-direction: column;
    }
}
