/*
Theme Name: Hashtag Library
Theme URI: https://example.com/hashtag-library
Author: Hashtag Team
Author URI: https://example.com
Description: Thème WordPress personnalisé pour une bibliothèque de hashtags avec moteur de recherche et système de crawling.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hashtag-library
Tags: custom-post-type, search, responsive
*/

/* Styles de base */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    flex: 0 0 auto;
    margin-right: 2rem;
}

.site-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-tagline {
    margin: 0;
    color: #666;
    font-size: 1rem;
    font-weight: 400;
}

/* Navigation */
.main-nav {
    flex: 1 0 auto;
    text-align: right;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: #34495e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
    }
    
    .mobile-menu-toggle button {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: #34495e;
        margin: 5px 0;
        transition: 0.3s ease;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem;
        text-align: center;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Main Content */
.site-main {
    margin-top: 70px;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: width 0.3s ease;
}

/* Minimalist Styles */
.minimal-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.minimal-search {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.minimal-search h1 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

#minimal-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#minimal-search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#minimal-search-input:focus {
    outline: none;
    border-color: #1a73e8;
}

button[type="submit"] {
    padding: 12px 24px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #1557b0;
}

/* Loading */
.minimal-loading {
    text-align: center;
    margin: 20px 0;
    display: none;
}

.minimal-loading.hidden {
    display: none;
}

.minimal-loading::before {
    content: "Recherche en cours...";
    color: #666;
}

/* Results */
.minimal-results {
    margin-top: 20px;
    color: #666;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .minimal-container {
        padding: 10px;
    }

    #minimal-search-form {
        flex-direction: column;
    }

    button[type="submit"] {
        width: 100%;
    }
}

/* Hashtag Sources Table */
.sources-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.sources-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

.sources-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.sources-table input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
}

.sources-table select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active {
    background: #4CAF50;
}

.status-inactive {
    background: #f44336;
}

/* Help Section */
.help-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.help-section h3 {
    color: #1a73e8;
    margin-bottom: 15px;
}

.help-section ul {
    list-style: none;
    padding: 0;
}

.help-section li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.help-section li:before {
    content: "•";
    color: #1a73e8;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 100%;
        position: static;
        box-shadow: none;
    }
    
    .hashtag-sources-section {
        margin: 20px 0;
    }
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a73e8;
}

.sidebar-header p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.9rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sidebar-nav a:hover {
    background: #f5f5f5;
}

.sidebar-nav a.active {
    background: #f5f5f5;
    color: #1a73e8;
}

/* Main Content */
.dashboard-content {
    flex: 1;
    padding: 40px;
    margin-left: 250px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.card-content {
    text-align: center;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #666;
}

.card-content p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a73e8;
}

/* Hashtag List */
.hashtag-list-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hashtag-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-group {
    display: flex;
    align-items: center;
}

#hashtag-search {
    width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.search-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #1557b0;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .dashboard-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Style de la barre de recherche */
.search-container {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #0073aa;
    outline: none;
}

/* Style des hashtags */
.hashtag-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.hashtag-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.hashtag-card:hover {
    transform: translateY(-2px);
}

.hashtag {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px 0;
    background: #0073aa;
    color: white;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hashtag:hover {
    background: #005177;
}

/* Style des statistiques */
.hashtag-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Style des filtres */
.filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.btn-secondary {
    background: #f8f9fa;
    color: #34495e;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #2c3e50;
}

/* Palette de couleurs */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #34495e;
    --text-color: #2c3e50;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Composants */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Formulaires */
input, textarea, select {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #0073aa;
    color: white;
}

/* Style responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .hashtag-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
