/*
 * File: css/word-counter-analyzer.css
 * Description: Content Station Styling (Golden Standard)
 */

.full-width-container {
    max-width: 1400px;
}

/* --- Layout --- */
.analyzer-workspace {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
    min-height: 800px; /* Spacious */
}

.panel {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* --- Left Panel: Editor --- */
.editor-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 5px;
}

.tb-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #555;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-weight: 600;
}

.tb-btn.font-style {
    font-family: serif;
    font-size: 1.1rem;
}

.tb-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

/* Editor Area */
.editor-wrapper {
    flex: 1;
    position: relative;
    background: #fff;
    min-height: 600px;
}

#textInput {
    width: 100%;
    height: 100%;
    border: none;
    padding: 30px 40px;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    outline: none;
    resize: none;
    background: transparent;
    z-index: 2;
    position: relative;
}

/* Grammar Overlay */
#highlighterLayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 40px;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: transparent;
    pointer-events: none;
    z-index: 1;
    white-space: pre-wrap;
    overflow: hidden;
}

.highlight-error {
    background-color: rgba(255, 235, 59, 0.3); /* Yellow */
    border-bottom: 2px solid #fbc02d;
}

/* --- Social Goals Bar --- */
.social-goals-bar {
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.goals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.platform-icons {
    display: flex;
    gap: 8px;
}

.plat-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.plat-btn:hover, .plat-btn.active { 
    background: var(--primary-color); 
    color: white; 
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(147,112,219,0.3);
}

.plat-btn.twitter.active { background: #1DA1F2; border-color: #1DA1F2; }
.plat-btn.instagram.active { background: #E1306C; border-color: #E1306C; }

.limit-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.progress-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #ccc;
    transition: width 0.3s ease, background 0.3s ease;
}

.progress-fill.green { background: #28a745; }
.progress-fill.orange { background: #ffc107; }
.progress-fill.red { background: #dc3545; }

/* Import Bar */
.import-bar {
    padding: 10px 25px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.import-buttons { display: flex; gap: 10px; }

.cloud-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    color: #555;
}

.cloud-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- Right Panel --- */
.stats-panel .panel-header {
    background: var(--primary-color);
    border: none;
}
.stats-panel .panel-header h3 { color: white; }

.smart-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
}

.smart-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    color: #555;
}

.smart-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.smart-btn span { font-size: 20px; color: var(--primary-color); }

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
}

.metric-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.metric-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-lbl {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
}

.metrics-list {
    padding: 0 20px 15px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.9rem;
    color: #666;
}

.badge {
    background: #e0e7ff;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.keyword-section {
    padding: 15px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
    flex: 1;
    overflow: hidden;
}

.keyword-section h4 {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
}

.keyword-list {
    list-style: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
}

.stats-footer { padding: 15px; background: #fff; border-top: 1px solid #eee; }
.full-width { width: 100%; justify-content: center; }

/* Modal */
.large-modal { max-width: 700px; }
.para-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.para-col label { font-weight: 600; display: block; margin-bottom: 8px; }
.para-col textarea { width: 100%; height: 200px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; resize: none; }

/* Responsive */
@media (max-width: 992px) {
    .analyzer-workspace { grid-template-columns: 1fr; }
    .input-panel { min-height: 500px; }
    .para-grid { grid-template-columns: 1fr; }
}

/* Notification Override */
#notification {
    top: 30px !important;
    bottom: auto !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 12px !important;
    padding: 15px 30px !important;
    font-size: 1rem !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 300px !important;
    z-index: 99999 !important;
}