/**
 * Frontend styles for LSOC Plugin Boilerplate
 * 
 * @package LSOC_Plugin_Boilerplate
 * @version 1.0.0
 */

/* Shortcode Styles */
.cyanweb-wc-tools-shortcode {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lsoc-ai-generated-notice {
    margin-top: 20px;
}

.cyanweb-wc-tools-shortcode h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
    font-size: 1.5em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.lsoc-boilerplate-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lsoc-boilerplate-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.lsoc-boilerplate-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.lsoc-boilerplate-item h4 a {
    color: #0073aa;
    text-decoration: none;
}

.lsoc-boilerplate-item h4 a:hover {
    color: #005177;
    text-decoration: underline;
}

.lsoc-item-excerpt {
    margin: 10px 0;
    color: #666;
    line-height: 1.5;
}

.lsoc-item-meta {
    margin: 10px 0;
    font-size: 0.9em;
    color: #666;
}

.lsoc-item-meta span {
    margin-right: 15px;
}

.lsoc-item-badges {
    margin-top: 10px;
}

.lsoc-badge {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 5px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.lsoc-badge-type {
    background: #e7f3ff;
    color: #0073aa;
}

.lsoc-badge-priority {
    background: #fff3cd;
    color: #856404;
}

.lsoc-badge-status {
    background: #d4edda;
    color: #155724;
}

/* Type-specific badge colors */
.lsoc-type-feature {
    background: #d4edda;
    color: #155724;
}

.lsoc-type-bug {
    background: #f8d7da;
    color: #721c24;
}

.lsoc-type-enhancement {
    background: #e7f3ff;
    color: #0073aa;
}

.lsoc-type-task {
    background: #fff3cd;
    color: #856404;
}

/* Priority-specific badge colors */
.lsoc-priority-low {
    background: #d1ecf1;
    color: #0c5460;
}

.lsoc-priority-medium {
    background: #fff3cd;
    color: #856404;
}

.lsoc-priority-high {
    background: #f8d7da;
    color: #721c24;
}

.lsoc-priority-critical {
    background: #f5c6cb;
    color: #721c24;
}

/* Status-specific badge colors */
.lsoc-status-pending {
    background: #fff3cd;
    color: #856404;
}

.lsoc-status-in_progress {
    background: #e7f3ff;
    color: #0073aa;
}

.lsoc-status-completed {
    background: #d4edda;
    color: #155724;
}

.lsoc-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Items Shortcode */
.lsoc-boilerplate-items-shortcode {
    margin: 20px 0;
}

.lsoc-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lsoc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.lsoc-item:last-child {
    border-bottom: none;
}

.lsoc-item a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.lsoc-item a:hover {
    color: #005177;
    text-decoration: underline;
}

.lsoc-item-date {
    font-size: 0.9em;
    color: #666;
}

/* Stats Shortcode */
.lsoc-boilerplate-stats-shortcode {
    margin: 20px 0;
}

.lsoc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.lsoc-stat-item {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.lsoc-stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.lsoc-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Shortcode */
.lsoc-boilerplate-form-shortcode {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lsoc-boilerplate-form-shortcode h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
    font-size: 1.5em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.lsoc-boilerplate-form {
    max-width: 600px;
}

.lsoc-boilerplate-form p {
    margin-bottom: 15px;
}

.lsoc-boilerplate-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23282d;
}

.lsoc-boilerplate-form input,
.lsoc-boilerplate-form select,
.lsoc-boilerplate-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.lsoc-boilerplate-form input:focus,
.lsoc-boilerplate-form select:focus,
.lsoc-boilerplate-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.lsoc-boilerplate-form textarea {
    resize: vertical;
    min-height: 100px;
}

.lsoc-boilerplate-form .button {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lsoc-boilerplate-form .button:hover {
    background: #005177;
    border-color: #005177;
}

.lsoc-boilerplate-form .button:disabled {
    background: #c3c4c7;
    border-color: #c3c4c7;
    cursor: not-allowed;
}

/* Form Messages */
.lsoc-form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.lsoc-form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

/* Widget Styles */
.cyanweb-wc-tools-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cyanweb-wc-tools-widget-item {
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.cyanweb-wc-tools-widget-item a {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
}

.cyanweb-wc-tools-widget-item a:hover {
    color: #005177;
}

.lsoc-widget-item-type,
.lsoc-widget-item-priority,
.lsoc-widget-item-status {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

.lsoc-widget-item-type {
    background: #e7f3ff;
    color: #0073aa;
}

.lsoc-widget-item-priority {
    background: #fff3cd;
    color: #856404;
}

.lsoc-widget-item-status {
    background: #d4edda;
    color: #155724;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cyanweb-wc-tools-shortcode,
    .lsoc-boilerplate-form-shortcode {
        padding: 15px;
        margin: 15px 0;
    }
    
    .lsoc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lsoc-boilerplate-item {
        padding: 10px;
    }
    
    .lsoc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .lsoc-item-date {
        font-size: 0.8em;
    }
}

@media screen and (max-width: 480px) {
    .lsoc-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .lsoc-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .lsoc-boilerplate-form {
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    .cyanweb-wc-tools-shortcode,
    .lsoc-boilerplate-form-shortcode {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .lsoc-boilerplate-item {
        break-inside: avoid;
        margin-bottom: 15px;
    }
    
    .lsoc-badge {
        border: 1px solid #000;
        background: #fff !important;
        color: #000 !important;
    }
}

/* Accessibility */
.lsoc-boilerplate-item a:focus,
.lsoc-boilerplate-form input:focus,
.lsoc-boilerplate-form select:focus,
.lsoc-boilerplate-form textarea:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .lsoc-boilerplate-item {
        border: 2px solid #000;
    }
    
    .lsoc-badge {
        border: 1px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .lsoc-boilerplate-form .button {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cyanweb-wc-tools-shortcode,
    .lsoc-boilerplate-form-shortcode {
        background: #1e1e1e;
        border-color: #444;
        color: #fff;
    }
    
    .lsoc-boilerplate-item {
        background: #2a2a2a;
        border-left-color: #0073aa;
    }
    
    .lsoc-boilerplate-item h4 a {
        color: #72aee6;
    }
    
    .lsoc-boilerplate-form input,
    .lsoc-boilerplate-form select,
    .lsoc-boilerplate-form textarea {
        background: #2a2a2a;
        border-color: #444;
        color: #fff;
    }
    
    .lsoc-stat-item {
        background: #2a2a2a;
        border-color: #444;
    }
}
