/* ========================================
   WordPress E-commerce Guide - Styles
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
}

/* Introduction */
.intro {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 3px solid #667eea;
}

.intro p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

/* Steps Section */
.steps-section {
    padding: 40px 30px;
}

.steps-section h2 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 30px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

/* Step Cards */
.step-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.2);
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.step-card h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.step-card ul {
    margin-left: 20px;
    margin-top: 15px;
}

.step-card ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.step-card ul ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

.step-card strong {
    color: #667eea;
}

/* Tips */
.tip {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 0.95em;
}

.tip strong {
    color: #856404;
}

/* Flowchart Section */
.flowchart-section {
    padding: 40px 30px;
    background: #f8f9fa;
}

.flowchart-section h2 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
}

.flowchart {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.flow-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 10px 0;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.flow-item:hover {
    transform: scale(1.05);
}

.arrow {
    color: #667eea;
    font-size: 2em;
    font-weight: bold;
    margin: 5px 0;
}

/* Print Button */
.print-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.print-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.print-button:active {
    transform: translateY(-1px);
}

/* Comment Section */
.comment-section {
    padding: 40px 30px;
    background: #f8f9fa;
    border-top: 3px solid #667eea;
}

.comment-section h2 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 15px;
}

.comment-section > p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

/* Comment Form */
.comment-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.comment-form h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Comments Table */
.comments-table-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.comments-table-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.comments-table {
    width: 100%;
    border-collapse: collapse;
}

.comments-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comments-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comments-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.comments-table tbody tr:hover {
    background-color: #f8f9fa;
}

.comments-table tbody tr:last-child {
    border-bottom: none;
}

.comments-table td {
    padding: 15px;
    vertical-align: top;
}

.comments-table td:first-child {
    font-weight: 600;
    color: #667eea;
    min-width: 150px;
}

.comments-table td:nth-child(2) {
    max-width: 500px;
    word-wrap: break-word;
}

.comments-table td:last-child {
    color: #999;
    min-width: 100px;
    font-size: 0.9em;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 25px;
}

footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

    .no-print {
        display: none !important;
    }

    .step-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .step-card:hover {
        transform: none;
    }

    header {
        background: #667eea;
        color: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .flowchart-section {
        page-break-before: always;
    }

    footer {
        page-break-before: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .steps-section {
        padding: 20px 15px;
    }

    .step-card {
        padding: 20px;
    }

    .step-card h3 {
        font-size: 1.2em;
    }

    .print-button {
        top: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .comments-table {
        font-size: 0.9em;
    }

    .comments-table th,
    .comments-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .step-number {
        font-size: 0.85em;
        padding: 6px 15px;
    }

    .comments-table td:first-child {
        min-width: 100px;
    }
}