/*
Theme Name: Web Dock
Theme URI: https://web-dock.shinmi-create.com/
Author: SHINMI CREATE
Description: HP制作管理・ワイヤーフレーム生成システム
Version: 1.0.0
Text Domain: web-dock
*/

/* ========================================
   Base Styles
======================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    writing-mode: horizontal-tb;
    direction: ltr;
}

/* WordPress Admin Bar対応 */
body.admin-bar .sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

/* ========================================
   Layout
======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background: var(--dark);
    color: white;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.content-area {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    min-width: 0;
}

/* ========================================
   Navigation
======================================== */
.nav-menu {
    list-style: none;
    margin-top: 30px;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: block;
    padding: 12px 15px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* ========================================
   Cards
======================================== */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--light);
}

/* ========================================
   Wireframe Preview
======================================== */
.wireframe-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.wireframe-preview {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.wireframe-header {
    background: var(--dark);
    color: white;
    padding: 10px 15px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.wireframe-canvas {
    padding: 20px;
    min-height: 400px;
}

.wireframe-section {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafafa;
}

.wireframe-section-label {
    font-size: 11px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.wireframe-element {
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 8px;
}

.wireframe-element.text {
    height: 12px;
    width: 80%;
}

.wireframe-element.text.short {
    width: 40%;
}

.wireframe-element.image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 12px;
}

.wireframe-element.button {
    height: 36px;
    width: 120px;
    background: var(--primary);
    opacity: 0.3;
}

/* ========================================
   Project List
======================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-thumbnail {
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-meta {
    font-size: 13px;
    color: var(--secondary);
}

/* ========================================
   Status Badge
======================================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-complete {
    background: #dcfce7;
    color: #166534;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

/* ========================================
   Forms
======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .content-area {
        margin-left: 0;
    }
}
